Definition of the main log-line format string for class textlogger::TextLogger and its derivates. This struct is used to define an external configuration variable named ALOX/LOGGERNAME/FORMAT. This variable can be accessed programatically with TextLogger::GetFormatMetaInfo or by accessing the variable's value through the configuration object found in camp singleton alib::ALOX.
Definition at line 29 of file variables.hpp.
#include <variables.hpp>
Public Field Index: | |
AStringPA | Format |
AStringPA | MsgSuffix |
AStringPA | VerbosityError |
AStringPA | VerbosityInfo |
AStringPA | VerbosityVerbose |
AStringPA | VerbosityWarning |
Public Method Index: | |
FormatMetaInfo (PoolAllocator &pool) | |
The line format specifies the (automated) log output that is prepended to each log line before the log message itself. This format string can be changed after the creation of a TextLogger.
The string supports replacement variables that begin with a %
character:
Resourced default is
If debug logging as well as release logging has scope information disabled (see ALOX_DBG_LOG_CI and ALOX_REL_LOG_CI), then it defaults to: "[%TC +%TL][%tN]%V[%D]%A1(%#): "
%TD
and %TT
may become problematic and ambiguous if the system clock is changed during a software run. Especially for long-running background software (daemons, servers, etc.), the software that uses ALox needs to provide a strategy of synchronizing the clock with field TextLogger::DateConverter.Definition at line 76 of file variables.hpp.
AStringPA MsgSuffix |
Characters written after each Log Statement. This may be used for example to reset colors and styles. Note, that with multi-line Log Statements, the contents of this field is not written at the end of each line, but only at the end of the last line. To define characters that are written after each line of a multi-line Log Statement, set field MsgSuffix.
Defaults to empty string.
Definition at line 102 of file variables.hpp.
AStringPA VerbosityError |
The replacement for variable %V
in field Format if Verbosity is Error
. Resourced as '[ERR]'.
Definition at line 80 of file variables.hpp.
AStringPA VerbosityInfo |
The replacement for variable %V
in field Format if Verbosity is Info
. Resourced as ' '.
Definition at line 88 of file variables.hpp.
AStringPA VerbosityVerbose |
The replacement for variable %V
in field Format if Verbosity is Verbose
. Resourced as to '[***]'.
Definition at line 92 of file variables.hpp.
AStringPA VerbosityWarning |
The replacement for variable %V
in field Format if Verbosity is Warning
. Resourced as '[WRN]'.
Definition at line 84 of file variables.hpp.
|
inline |
Constructor taking an object pool which is passed to each string member.
pool | The pool object of the Configuration. |
Definition at line 107 of file variables.hpp.