#include <Logger.h>
|
enum | LOG_LEVEL {
LOG_OFF
, LOG_ERROR
, LOG_WARNING
, LOG_INFO
,
LOG_DEBUG
, LOG_TRACE
} |
| Log levels. More...
|
|
|
| Logger (std::string name="", enum LOG_LEVEL level=LOG_INFO) |
| Constructs new Logger instance.
|
|
virtual void | debug (const char *message) |
| Log message at DEBUG-level.
|
|
virtual void | debug (const std::string &message) |
| Log message at DEBUG-level.
|
|
virtual void | error (const char *message) |
| Log message at ERROR-level.
|
|
virtual void | error (const std::string &message) |
| Log message at ERROR-level.
|
|
virtual void | info (const char *message) |
| Log message at INFO-level.
|
|
virtual void | info (const std::string &message) |
| Log message at INFO-level.
|
|
virtual void | trace (const char *message) |
| Log message at TRACE-level.
|
|
virtual void | trace (const std::string &message) |
| Log message at TRACE-level.
|
|
virtual void | warning (const char *message) |
| Log message at WARNING-level.
|
|
virtual void | warning (const std::string &message) |
| Log message at WARNING-level.
|
|
virtual void | log (enum LOG_LEVEL atLevel, const char *message) |
| Log message at given log-level.
|
|
virtual void | setLogLevel (enum LOG_LEVEL level) |
| Sets the log level of this logger.
|
|
|
virtual void | write (enum LOG_LEVEL level, const char *message)=0 |
| Writes the log message.
|
|
|
const std::string | name |
| Name of this logger.
|
|
◆ LOG_LEVEL
Log levels.
Naming does not currently collide with any macros... (thank you, C macros and Microsoft headers!)
◆ Logger()
tenduke::log::Logger::Logger |
( |
std::string |
name = "" , |
|
|
enum LOG_LEVEL |
level = LOG_INFO |
|
) |
| |
|
inlineexplicit |
Constructs new Logger instance.
- Parameters
-
◆ debug() [1/2]
virtual void tenduke::log::Logger::debug |
( |
const char * |
message | ) |
|
|
inlinevirtual |
Log message at DEBUG-level.
- Parameters
-
◆ debug() [2/2]
virtual void tenduke::log::Logger::debug |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
Log message at DEBUG-level.
- Parameters
-
◆ error() [1/2]
virtual void tenduke::log::Logger::error |
( |
const char * |
message | ) |
|
|
inlinevirtual |
Log message at ERROR-level.
- Parameters
-
◆ error() [2/2]
virtual void tenduke::log::Logger::error |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
Log message at ERROR-level.
- Parameters
-
◆ info() [1/2]
virtual void tenduke::log::Logger::info |
( |
const char * |
message | ) |
|
|
inlinevirtual |
Log message at INFO-level.
- Parameters
-
◆ info() [2/2]
virtual void tenduke::log::Logger::info |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
Log message at INFO-level.
- Parameters
-
◆ log()
virtual void tenduke::log::Logger::log |
( |
enum LOG_LEVEL |
atLevel, |
|
|
const char * |
message |
|
) |
| |
|
inlinevirtual |
Log message at given log-level.
- Parameters
-
◆ setLogLevel()
virtual void tenduke::log::Logger::setLogLevel |
( |
enum LOG_LEVEL |
level | ) |
|
|
inlinevirtual |
Sets the log level of this logger.
- Parameters
-
◆ trace() [1/2]
virtual void tenduke::log::Logger::trace |
( |
const char * |
message | ) |
|
|
inlinevirtual |
Log message at TRACE-level.
- Parameters
-
◆ trace() [2/2]
virtual void tenduke::log::Logger::trace |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
Log message at TRACE-level.
- Parameters
-
◆ warning() [1/2]
virtual void tenduke::log::Logger::warning |
( |
const char * |
message | ) |
|
|
inlinevirtual |
Log message at WARNING-level.
- Parameters
-
◆ warning() [2/2]
virtual void tenduke::log::Logger::warning |
( |
const std::string & |
message | ) |
|
|
inlinevirtual |
Log message at WARNING-level.
- Parameters
-
◆ write()
virtual void tenduke::log::Logger::write |
( |
enum LOG_LEVEL |
level, |
|
|
const char * |
message |
|
) |
| |
|
protectedpure virtual |
The documentation for this class was generated from the following file: