The LogConfig class. For get/set logging configurations.
More...
#include <zupply.hpp>
The LogConfig class. For get/set logging configurations.
std::string zz::log::LogConfig::datetime_format |
( |
| ) |
|
Get default datetime format.
- Returns
- Default datetime format
std::string zz::log::LogConfig::format |
( |
| ) |
|
Get default logger format.
- Returns
- Default format
Get instance of LogConfig class. LogConfig is a singleton class, so use this to get the instance.
- Returns
- Reference to instance.
int zz::log::LogConfig::log_level_mask |
( |
| ) |
|
Get default log level mask.
- Returns
- Integer representing levels using bit mask
void zz::log::LogConfig::set_datetime_format |
( |
std::string |
newDatetimeFormat | ) |
|
Set default datetime format.
- Parameters
-
void zz::log::LogConfig::set_default_datetime_format |
( |
std::string |
dateFormat | ) |
|
|
static |
Set default datetime format for all future loggers.
- Parameters
-
void zz::log::LogConfig::set_default_format |
( |
std::string |
format | ) |
|
|
static |
Set default format for all future loggers.
- Parameters
-
void zz::log::LogConfig::set_default_level_mask |
( |
int |
levelMask | ) |
|
|
static |
Set default level mask for all future loggers. Level mask is an int. Each bit control if corresponding level should be logged or not.
- Parameters
-
void zz::log::LogConfig::set_default_sink_list |
( |
std::vector< std::string > |
list | ) |
|
|
static |
Set default sink list for all future loggers.
- Parameters
-
list | A vector of strings storing the name of sinks |
void zz::log::LogConfig::set_format |
( |
std::string |
newFormat | ) |
|
Set default logger format.
- Parameters
-
void zz::log::LogConfig::set_log_level_mask |
( |
int |
newMask | ) |
|
Set default log level mask.
- Parameters
-
void zz::log::LogConfig::set_sink_list |
( |
std::vector< std::string > & |
list | ) |
|
Set default sink list.
- Parameters
-
list | Vector of names of the sinks to be set |
std::vector< std::string > zz::log::LogConfig::sink_list |
( |
| ) |
|
Get default sink list.
- Returns
- std::vector of sink names
The documentation for this class was generated from the following files: