OSFI-Fortran
3.10.0
OpenSF Integration Library
|
EHLog routines Procedures for presenting messages in the standard output in a format that can later be interpreted by openSF and others following the E2E-ICD. More...
Functions/Subroutines | |
subroutine, public | osfi_error (message) |
Shows a formatted message of the desired type (error/warning/info/debug). More... | |
subroutine, public | osfi_warning (message) |
Shows a formatted message of the desired type (error/warning/info/debug). More... | |
subroutine, public | osfi_info (message) |
Shows a formatted message of the desired type (error/warning/info/debug). More... | |
subroutine, public | osfi_debug (message) |
Shows a formatted message of the desired type (error/warning/info/debug). More... | |
subroutine, public | osfi_progress (n, m) |
Shows a formatted progress message. More... | |
subroutine, public | osfi_finishexecution (errorCode) |
Shows an information message and exits the program execution with an specific error code. More... | |
logical function, public | osfi_logger_isdebugging () |
Checks if the system is in debug mode. | |
EHLog routines Procedures for presenting messages in the standard output in a format that can later be interpreted by openSF and others following the E2E-ICD.
EHLog formats the logging messages as follows:
<message> ::= (<progress> | <log>) <EOL> <progress> ::= “Progress” <whitespaces> <delimiter> <whitespaces> <progress_body> <delimiter> ::= “|” <progress_body> ::= <integer> “ of ” <whitespace> <integer> <log> ::= <type> <whitespaces> <delimiter> <whitespaces> <text> <type> ::= “Error” | “Warning” | “Info” | “Debug” <white_spaces> ::= (“ “)+
This format defines five different types of messages:
Logger class presents debug messages only if an environment variables named “DEBUG_MODE” is defined and set as “On” in the model execution context. Logger also provides a way to finish the model execution (after a fatal error or at the expected end of the execution) and return a non-zero code to the operating system.
subroutine, public osfi_ehlog::osfi_debug | ( | character(len=*), intent(in) | message | ) |
Shows a formatted message of the desired type (error/warning/info/debug).
message | - text of the message |
References osfi_logger_isdebugging().
subroutine, public osfi_ehlog::osfi_error | ( | character(len=*), intent(in) | message | ) |
Shows a formatted message of the desired type (error/warning/info/debug).
message | - text of the message |
subroutine, public osfi_ehlog::osfi_finishexecution | ( | integer, intent(in) | errorCode | ) |
Shows an information message and exits the program execution with an specific error code.
errorCode | - Code of error to exit with. |
subroutine, public osfi_ehlog::osfi_info | ( | character(len=*), intent(in) | message | ) |
Shows a formatted message of the desired type (error/warning/info/debug).
message | - text of the message |
subroutine, public osfi_ehlog::osfi_progress | ( | integer, intent(in) | n, |
integer, intent(in) | m | ||
) |
Shows a formatted progress message.
n | - current step number |
m | - maximum number of steps. |
subroutine, public osfi_ehlog::osfi_warning | ( | character(len=*), intent(in) | message | ) |
Shows a formatted message of the desired type (error/warning/info/debug).
message | - text of the message |