◆ str()
character(len=15) function test_logging_mod::str |
( |
integer, intent(in) |
k | ) |
|
◆ test_logging_level()
subroutine test_logging_mod::test_logging_level |
Definition at line 14 of file test_logging.F90.
15 character(len=30) :: outpt
20 call log_set_logging_level(i)
23 call log_log(j, str(j)//
" level", outpt)
25 space = index(outpt,
"] ")
26 call assert_true(space .gt. 0,
"The logging_mod message terminates")
27 outpt = outpt(space+2 : len(outpt))
28 call assert_equals(str(j)//
" level", outpt, &
29 "Message included for specific logging_mod level")
31 call assert_not_equals(str(j)//
" level", outpt, &
32 "Message ignored for specific logging_mod level")
◆ test_logging_preamble()
subroutine test_logging_mod::test_logging_preamble |
Definition at line 39 of file test_logging.F90.
40 character(len=7) :: preamble
42 preamble = get_logging_preamble(
log_error)
43 call assert_equals(error_preamble, preamble)
45 preamble = get_logging_preamble(
log_warn)
46 call assert_equals(warn_preamble, preamble)
48 preamble = get_logging_preamble(
log_info)
49 call assert_equals(info_preamble, preamble)
51 preamble = get_logging_preamble(
log_debug)
52 call assert_equals(debug_preamble, preamble)
integer, parameter, public log_error
Only log ERROR messages.
integer, parameter, public log_warn
Log WARNING and ERROR messages.
integer, parameter, public log_info
Log INFO, WARNING and ERROR messages.
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 function, public log_get_logging_level()
Retrieves the current logging level.
integer, parameter, public log_debug
Log DEBUG, INFO, WARNING and ERROR messages.