Log stream.
More...
#include <Logger.hpp>
|
enum | Level : int {
Audit = -2,
Error = -1,
Warning = 0,
Info = 1,
Debug = 2,
Trace = 3
} |
| Log levels.
|
|
◆ LogStream() [1/2]
usbguard::LogStream::LogStream |
( |
Logger & |
logger, |
|
|
const Source & |
source, |
|
|
Level |
level |
|
) |
| |
◆ LogStream() [2/2]
usbguard::LogStream::LogStream |
( |
const LogStream & |
rhs | ) |
|
Constructs copy of LogStream rhs.
- Parameters
-
◆ levelToString()
const std::string usbguard::LogStream::levelToString |
( |
Level |
level | ) |
|
|
static |
Returns string representation of given level.
Example: levelToString(Audit) = (A)
- Parameters
-
level | Logger level to transform into string. |
- Returns
- String representation of given level.
- Exceptions
-
runtime_error | If level is invalid. |
- See also
- level
◆ sourceToString()
const std::string usbguard::LogStream::sourceToString |
( |
const Source & |
source | ) |
|
|
static |
Returns string representation of given source.
Format: <file>@<line>/<function>
- Parameters
-
source | Source to transform into string. |
- Returns
- String representation of given source.
- See also
- Source
The documentation for this class was generated from the following files: