knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
#include <Logger.h>
Public Types | |
enum | SinkType { File , Console , File , Console } |
enum | SinkType { File , Console , File , Console } |
Static Public Member Functions | |
static void | initialize () |
static void | loadConfiguration (boost::property_tree::ptree &config) |
static void | setupFileSink (const std::string &basename="knowrob.log", bool rotate=true, uint32_t max_size=1048576, uint32_t max_files=4) |
static void | setSinkLevel (SinkType sinkType, spdlog::level::level_enum log_level) |
static void | setSinkPattern (SinkType sinkType, const std::string &pattern) |
static std::string | formatGenericFailure (const std::string &name, const std::string &type) |
static void | initialize () |
static void | loadConfiguration (boost::property_tree::ptree &config) |
static void | setupFileSink (const std::string &basename="knowrob.log", bool rotate=true, uint32_t max_size=1048576, uint32_t max_files=4) |
static void | setSinkLevel (SinkType sinkType, spdlog::level::level_enum log_level) |
static void | setSinkPattern (SinkType sinkType, const std::string &pattern) |
static std::string | formatGenericFailure (const std::string &name, const std::string &type) |
Protected Member Functions | |
Logger () | |
void | updateLogger () |
Logger () | |
void | updateLogger () |
Static Protected Member Functions | |
static Logger & | get () |
static Logger & | get () |
Protected Attributes | |
std::unique_ptr< impl > | pimpl_ |
Interface to initialize and configure the default logger of the system. The default logger is used within the logging macros KB_INFO, KB_ERROR, ...
|
protected |
Definition at line 23 of file Logger.cpp.
|
protected |
|
static |
name | the name of a component. |
type | the type of action that failed. |
Definition at line 154 of file Logger.cpp.
|
static |
name | the name of a component. |
type | the type of action that failed. |
|
staticprotected |
Definition at line 40 of file Logger.cpp.
|
staticprotected |
|
static |
Initialize the logging subsystem, i.e., configure it with default parameters. The configuration may be changed at a later point, e.g. when reading a settings file.
Definition at line 45 of file Logger.cpp.
|
static |
Initialize the logging subsystem, i.e., configure it with default parameters. The configuration may be changed at a later point, e.g. when reading a settings file.
|
static |
Configure logging using a property tree.
config | a property tree. |
Definition at line 76 of file Logger.cpp.
|
static |
Configure logging using a property tree.
config | a property tree. |
|
static |
sinkType | the type of the sink to configure. |
log_level | the logging level for the console sink. |
Definition at line 130 of file Logger.cpp.
|
static |
sinkType | the type of the sink to configure. |
log_level | the logging level for the console sink. |
|
static |
sinkType | the type of the sink to configure. |
pattern | the logging pattern for the console sink. |
Definition at line 142 of file Logger.cpp.
|
static |
sinkType | the type of the sink to configure. |
pattern | the logging pattern for the console sink. |
|
static |
Create a new fie sink. Any existing file sink will be replaced by the new one.
basename | the base name of log files |
rotate | true if files should be rotated on opening |
max_size | max size of log files before rotation |
max_files | max number of stored files |
Definition at line 118 of file Logger.cpp.
|
static |
Create a new fie sink. Any existing file sink will be replaced by the new one.
basename | the base name of log files |
rotate | true if files should be rotated on opening |
max_size | max size of log files before rotation |
max_files | max number of stored files |
|
protected |
Definition at line 28 of file Logger.cpp.
|
protected |