Container for loggers, and global logging options (such as verbose vs. quiet output).
More...
#include <common/common.hh>
|
static std::string | Prefix () |
| Get custom prefix. This is empty by default. More...
|
|
static void | SetPrefix (const std::string &_customPrefix) |
| Add a custom prefix in front of the default prefixes. More...
|
|
static void | SetVerbosity (const int _level) |
| Set verbosity, where <= 0: No output, 1: Error messages, 2: Error and warning messages, 3: Error, warning, and info messages, >= 4: Error, warning, info, and debug messages. More...
|
|
static int | Verbosity () |
| Get the verbose level. More...
|
|
Container for loggers, and global logging options (such as verbose vs. quiet output).
◆ Prefix()
◆ SetPrefix()
static void SetPrefix |
( |
const std::string & |
_customPrefix | ) |
|
|
static |
Add a custom prefix in front of the default prefixes.
By default, the custom prefix is an empty string, so the messages start as:
[Err], [Wrn], [Msg], [Dbg]
If you set the prefix to "-my-", for example, they become:
-my-[Err], -my-[Wrn], -my-[Msg], -my-[Dbg]
- Parameters
-
[in] | _customPrefix | Prefix string. |
- See also
- std::string Prefix() const
◆ SetVerbosity()
static void SetVerbosity |
( |
const int |
_level | ) |
|
|
static |
Set verbosity, where <= 0: No output, 1: Error messages, 2: Error and warning messages, 3: Error, warning, and info messages, >= 4: Error, warning, info, and debug messages.
- Parameters
-
[in] | _level | The new verbose level. |
◆ Verbosity()
◆ dbg
Global instance of the debug logger.
◆ err
Global instance of the error logger.
◆ log
Global instance of the file logger.
◆ msg
Global instance of the message logger.
◆ warn
Global instance of the warning logger.
The documentation for this class was generated from the following file: