Static class to log output.
More...
#include <Log.h>
|
static void | setLogLevel (const TLogLevel logLevel) |
| Set current log level. More...
|
|
static TLogLevel | logLevel (void) |
| Get current log level. More...
|
|
static void | setStream (std::ostream &stream) |
| Set current output stream. More...
|
|
static const std::ostream & | stream (void) |
| Get current output stream. More...
|
|
static void | log (const std::string &msg, const TLogLevel level=LOG_LEVEL_VERBOSE) |
| Method to log out a message in a specific level. More...
|
|
static void | log (const std::string &msg, std::ostream &stream, const TLogLevel level=LOG_LEVEL_VERBOSE) |
| Method to log out a message in a specific level to a specific stream. More...
|
|
|
static TLogLevel | _logLevel |
| Current log level. This can be overwritten with proper value assigned to environment variable FIRES_LOG_LEVEL.
|
|
static std::ostream * | _stream |
| Current stream to write log to.
|
|
Static class to log output.
Definition at line 44 of file Log.h.
static void fires::Log::log |
( |
const std::string & |
msg, |
|
|
const TLogLevel |
level = LOG_LEVEL_VERBOSE |
|
) |
| |
|
static |
Method to log out a message in a specific level.
- Parameters
-
msg | message to log |
level | level of the message |
static void fires::Log::log |
( |
const std::string & |
msg, |
|
|
std::ostream & |
stream, |
|
|
const TLogLevel |
level = LOG_LEVEL_VERBOSE |
|
) |
| |
|
static |
Method to log out a message in a specific level to a specific stream.
- Parameters
-
msg | message to log |
level | level of the message |
stream | stream where log will be written |
static TLogLevel fires::Log::logLevel |
( |
void |
| ) |
|
|
static |
Get current log level.
- Returns
- current log level
static void fires::Log::setLogLevel |
( |
const TLogLevel |
logLevel | ) |
|
|
static |
Set current log level.
- Parameters
-
static void fires::Log::setStream |
( |
std::ostream & |
stream | ) |
|
|
static |
Set current output stream.
- Parameters
-
stream | output stream to be set |
static const std::ostream& fires::Log::stream |
( |
void |
| ) |
|
|
static |
Get current output stream.
- Returns
- current output stream
The documentation for this class was generated from the following file: