OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::LogOptions Class Reference

#include <Logger.h>

+ Collaboration diagram for logger::LogOptions:

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_
 

Detailed Description

Definition at line 202 of file Logger.h.

Constructor & Destructor Documentation

logger::LogOptions::LogOptions ( char const *  argv0)
logger::LogOptions::~LogOptions ( )

Member Function Documentation

boost::filesystem::path logger::LogOptions::full_log_dir ( ) const

Referenced by logger::init().

+ Here is the caller graph for this function:

boost::program_options::options_description const& logger::LogOptions::get_options ( ) const

Referenced by main().

+ Here is the caller graph for this function:

void logger::LogOptions::parse_command_line ( int  ,
char const *const *   
)
void logger::LogOptions::set_base_path ( std::string const &  base_path)

Referenced by main().

+ Here is the caller graph for this function:

void logger::LogOptions::set_options ( )

Member Data Documentation

bool logger::LogOptions::auto_flush_ {true}

Definition at line 217 of file Logger.h.

Referenced by logger::make_sink().

std::string logger::LogOptions::base_path_ {"."}
private

Definition at line 203 of file Logger.h.

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_

Definition at line 210 of file Logger.h.

size_t logger::LogOptions::max_files_ {100}

Definition at line 218 of file Logger.h.

Referenced by logger::init(), and main().

size_t logger::LogOptions::min_free_space_ {20 << 20}

Definition at line 219 of file Logger.h.

std::unique_ptr<boost::program_options::options_description> logger::LogOptions::options_
private

Definition at line 206 of file Logger.h.

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().


The documentation for this class was generated from the following file: