@@ -8,20 +8,20 @@ title: logger
8
8
## Introduction
9
9
10
10
This module defines a derived type, its methods, a variable, and
11
- constants to be used for the reporting of errors, for filtering the
12
- log messages, and other information. The derived type, ` logger_type ` ,
13
- is to be used to define both global and local logger variables. The
14
- ` logger_type ` methods serve to configure the loggers and use the logger
15
- variables to report messages to a variable specific list of I/O units
16
- termed ` log_units ` . The variable, ` global_logger ` , of type ` logger_type ` ,
17
- is intended to serve as the default global logger. The constants serve as
18
- error flags returned by the optional integer ` stat ` argument.
11
+ constants to be used for the reporting of errors, displaying messages,
12
+ and other information. The derived type, ` logger_type ` , is to be used
13
+ to define both global and local logger variables. The ` logger_type `
14
+ methods serve to configure the loggers and use the logger variables to
15
+ report messages to a variable specific list of I/O units termed
16
+ ` log_units ` . The variable, ` global_logger ` , of type ` logger_type ` ,
17
+ is intended to serve as the default global logger. The constants serve
18
+ as error flags returned by the optional integer ` stat ` argument.
19
19
20
20
The logger variables have the option to:
21
21
22
22
* change which units receive the log messages;
23
23
* report which units receive the log messages;
24
- * change the level for filtering the log messages ;
24
+ * select which types of messages are logged ;
25
25
* precede messages by a blank line;
26
26
* precede messages by a time stamp of the form
27
27
` yyyy-mm-dd hh:mm:ss.sss ` ;
@@ -66,10 +66,11 @@ Error Code | Description
66
66
` write_fault ` | one of the writes to ` log_units ` failed
67
67
68
68
The module also defines eight distinct public integer constants for
69
- filtering the log messages. These constants, termed severity levels, are
70
- (sorted following their increasing order of severity): ` all_level ` ,
71
- ` debug_level ` , ` information_level ` , ` warning_level ` , ` error_level ` ,
72
- ` io_error_level ` , ` text_error_level ` , and ` none_level ` .
69
+ selecting the messages that are logged. These constants, termed
70
+ severity levels, are (sorted following their increasing order of
71
+ severity): ` all_level ` , ` debug_level ` , ` information_level ` ,
72
+ ` warning_level ` , ` error_level ` , ` io_error_level ` , ` text_error_level ` ,
73
+ and ` none_level ` .
73
74
All log messages with a level (e.g., ` debug_level ` ) lower than a
74
75
specified severity level (e.g., ` information_level ` ) will be ignored.
75
76
The levels ` error_level ` and ` io_error_level ` have the same severity.
0 commit comments