|
SILICON
|
#include <logger.hpp>
Public Types | |
| using | SinkHandle = std::size_t |
| using | CallbackSink = std::function<void(const LogMessage&)> |
Public Member Functions | |
| Logger (std::string category) | |
| void | trace (std::string_view message) const |
| void | debug (std::string_view message) const |
| void | info (std::string_view message) const |
| void | warning (std::string_view message) const |
| void | error (std::string_view message) const |
| void | critical (std::string_view message) const |
Static Public Member Functions | |
| static void | initialize () |
| static void | shutdown () |
| static void | addConsoleSink (std::ostream &stream) |
| static void | setMinimumLevel (LogLevel level) |
| static SinkHandle | addCallbackSink (CallbackSink callback) |
| static void | removeSink (SinkHandle handle) |
| static void | trace (std::string_view category, std::string_view message) |
| static void | debug (std::string_view category, std::string_view message) |
| static void | info (std::string_view category, std::string_view message) |
| static void | warning (std::string_view category, std::string_view message) |
| static void | error (std::string_view category, std::string_view message) |
| static void | critical (std::string_view category, std::string_view message) |
Static Private Member Functions | |
| static void | log (LogLevel level, std::string_view category, std::string_view message) |
Private Attributes | |
| std::string | category |
Definition at line 26 of file logger.hpp.
| using CallbackSink = std::function<void(const LogMessage&)> |
Definition at line 29 of file logger.hpp.
| using SinkHandle = std::size_t |
Definition at line 28 of file logger.hpp.
|
explicit |
Definition at line 178 of file logger.cpp.
|
static |
Definition at line 240 of file logger.cpp.
|
static |
Definition at line 208 of file logger.cpp.
|
static |
Definition at line 297 of file logger.cpp.
| void critical | ( | std::string_view | message | ) | const |
Definition at line 327 of file logger.cpp.
|
static |
Definition at line 277 of file logger.cpp.
| void debug | ( | std::string_view | message | ) | const |
Definition at line 307 of file logger.cpp.
|
static |
Definition at line 292 of file logger.cpp.
| void error | ( | std::string_view | message | ) | const |
Definition at line 322 of file logger.cpp.
|
static |
Definition at line 282 of file logger.cpp.
| void info | ( | std::string_view | message | ) | const |
Definition at line 312 of file logger.cpp.
|
static |
Definition at line 180 of file logger.cpp.
|
staticprivate |
Definition at line 332 of file logger.cpp.
|
static |
Definition at line 258 of file logger.cpp.
|
static |
Definition at line 231 of file logger.cpp.
|
static |
Definition at line 187 of file logger.cpp.
|
static |
Definition at line 272 of file logger.cpp.
| void trace | ( | std::string_view | message | ) | const |
Definition at line 302 of file logger.cpp.
|
static |
Definition at line 287 of file logger.cpp.
| void warning | ( | std::string_view | message | ) | const |
Definition at line 317 of file logger.cpp.
|
private |
Definition at line 55 of file logger.hpp.