Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public, | parameter | :: | DEBUG | = | 1 | |
integer, | public, | parameter | :: | ERROR | = | 4 | |
integer, | public, | parameter | :: | INFO | = | 2 | |
integer, | public, | parameter | :: | WARNING | = | 3 | |
logical, | private, | save | :: | file_opened | = | .false. | |
integer, | private, | save | :: | log_level | = | INFO | |
character(len=1028), | public | :: | log_msg | ||||
character(len=256), | private, | save | :: | log_name | |||
integer, | private | :: | log_unit | ||||
integer, | private | :: | unit |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout), | optional | :: | io_err |
Closes the log file |
Send a log header message to the log file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Message to log |
||
integer, | intent(in) | :: | level |
Log level |
||
logical, | intent(in), | optional | :: | upper_space | ||
logical, | intent(in), | optional | :: | lower_space |
Send a log message to the log file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Message to log |
||
integer, | intent(in) | :: | level |
Log level |
Opens a new log file for writing
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | logfile_name | |||
integer, | intent(inout), | optional | :: | io_err |
Sets the log level
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | level |
Writes the message to the log file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | message |
Message to log |