OmniSciDB  471d68cefb
 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)
boost::filesystem::path full_log_dir () 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

boost::filesystem::path log_dir_ {"mapd_log"}
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_ {"."}
< boost::program_options::options_description > 

Detailed Description

Definition at line 113 of file Logger.h.

Constructor & Destructor Documentation

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

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 CommandLineOptions::fillOptions(), and 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 CommandLineOptions::init_logging(), and 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 128 of file Logger.h.

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

Definition at line 114 of file Logger.h.

Channels logger::LogOptions::channels_

Definition at line 127 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 123 of file Logger.h.

boost::filesystem::path logger::LogOptions::log_dir_ {"mapd_log"}

Definition at line 121 of file Logger.h.

size_t logger::LogOptions::max_files_ {100}

Definition at line 129 of file Logger.h.

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

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

Definition at line 130 of file Logger.h.

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

Definition at line 117 of file Logger.h.

bool logger::LogOptions::rotate_daily_ {true}

Definition at line 131 of file Logger.h.

size_t logger::LogOptions::rotation_size_ {10 << 20}

Definition at line 132 of file Logger.h.

Severity logger::LogOptions::severity_ {Severity::INFO}

Definition at line 125 of file Logger.h.

Referenced by logger::init(), and CommandLineOptions::init_logging().

Severity logger::LogOptions::severity_clog_ {Severity::ERROR}

Definition at line 126 of file Logger.h.

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

std::string logger::LogOptions::symlink_ {".{SEVERITY}"}

Definition at line 124 of file Logger.h.

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