OmniSciDB
a5dc49c757
|
#include <Logger.h>
Public Member Functions | |
LogOptions (char const *argv0) | |
~LogOptions () | |
boost::filesystem::path | full_log_dir () const |
boost::program_options::options_description const & | get_options () const |
void | parse_command_line (int, char const *const *) |
void | set_base_path (std::string const &base_path) |
void | set_options () |
Public Attributes | |
std::unique_ptr < boost::filesystem::path > | log_dir_ |
std::string | file_name_pattern_ {".{SEVERITY}.%Y%m%d-%H%M%S.log"} |
std::string | symlink_ {".{SEVERITY}"} |
Severity | severity_ {Severity::INFO} |
Severity | severity_clog_ {Severity::ERROR} |
Channels | channels_ |
bool | auto_flush_ {true} |
size_t | max_files_ {100} |
size_t | min_free_space_ {20 << 20} |
bool | rotate_daily_ {true} |
size_t | rotation_size_ {10 << 20} |
Private Attributes | |
std::string | base_path_ {"."} |
std::unique_ptr < boost::program_options::options_description > | options_ |
logger::LogOptions::LogOptions | ( | char const * | argv0 | ) |
logger::LogOptions::~LogOptions | ( | ) |
boost::filesystem::path logger::LogOptions::full_log_dir | ( | ) | const |
boost::program_options::options_description const& logger::LogOptions::get_options | ( | ) | const |
void logger::LogOptions::parse_command_line | ( | int | , |
char const *const * | |||
) |
void logger::LogOptions::set_base_path | ( | std::string const & | base_path | ) |
void logger::LogOptions::set_options | ( | ) |
bool logger::LogOptions::auto_flush_ {true} |
Definition at line 217 of file Logger.h.
Referenced by logger::make_sink().
Channels logger::LogOptions::channels_ |
Definition at line 216 of file Logger.h.
Referenced by logger::init().
std::string logger::LogOptions::file_name_pattern_ {".{SEVERITY}.%Y%m%d-%H%M%S.log"} |
Definition at line 212 of file Logger.h.
Referenced by logger::make_sink().
std::unique_ptr<boost::filesystem::path> logger::LogOptions::log_dir_ |
size_t logger::LogOptions::max_files_ {100} |
Definition at line 218 of file Logger.h.
Referenced by logger::init(), and main().
|
private |
bool logger::LogOptions::rotate_daily_ {true} |
Definition at line 220 of file Logger.h.
Referenced by logger::make_sink().
size_t logger::LogOptions::rotation_size_ {10 << 20} |
Definition at line 221 of file Logger.h.
Referenced by logger::make_sink().
Severity logger::LogOptions::severity_ {Severity::INFO} |
Definition at line 214 of file Logger.h.
Referenced by logger::init(), and logger::make_sink().
Severity logger::LogOptions::severity_clog_ {Severity::ERROR} |
Definition at line 215 of file Logger.h.
Referenced by logger::init(), and logger::make_sink().
std::string logger::LogOptions::symlink_ {".{SEVERITY}"} |
Definition at line 213 of file Logger.h.
Referenced by logger::make_sink().