16 character(len=*),
parameter ::
error_preamble =
"[ERROR]",& !< Error message preamble
37 integer,
intent(in) :: pid
47 integer,
intent(in) :: level
48 character(len=*),
intent(in) :: message
74 subroutine log_log(level, message, str)
75 integer,
intent(in) :: level
76 character(len=*),
intent(in) :: message
77 character(len=*),
intent(out),
optional :: str
80 if (
present(str))
then 98 integer,
intent(in) :: level
114 integer,
intent(in) :: level
character(len= *), parameter error_preamble
Error message preamble.
logical, parameter error_is_fatal
Whether an error log message is fatal and stops execution.
integer, parameter, public log_error
Only log ERROR messages.
subroutine, public log_master_log(level, message)
Will log just from the master process.
integer, parameter, public log_debug
Log DEBUG, INFO, WARNING and ERROR messages.
character(len=7) function get_logging_preamble(level)
Returns the string preamble that applies to the specific logging level.
subroutine, public log_master_newline()
The master process will log a new line to stdio.
subroutine, public log_log(level, message, str)
Logs a message at the specified level. If the level is above the current level then the message is ig...
integer current_log_level
Private current logging state, the default is INFO level.
subroutine, public log_set_logging_level(level)
Sets the logging level, messages with less priority will be ignored.
integer, parameter, public log_warn
Log WARNING and ERROR messages.
subroutine, public initialise_logging(pid)
Initialises the logging. This is done to make it easier for master logging only, so that we don't hav...
character(len= *), parameter warn_preamble
Warning message preable.
logical function, public log_is_master()
Determines whether the process is the master logging process. This might be preferable rather than ca...
integer, parameter, public log_info
Log INFO, WARNING and ERROR messages.
integer, parameter, private master_process
character(len= *), parameter info_preamble
Info message preamble.
subroutine, public log_newline()
Will log a new line to the stdout.
integer function, public log_get_logging_level()
Retrieves the current logging level.
logical, save i_am_master
Whether or not I am the master process.
character(len= *), parameter debug_preamble
Debug message preamble.