![]() |
Kea
2.3.5-git
|
Defines single logging destination. More...
#include <logging_info.h>
Public Member Functions | |
LoggingDestination () | |
Default constructor. More... | |
bool | equals (const LoggingDestination &other) const |
Compares two objects for equality. More... | |
virtual isc::data::ElementPtr | toElement () const |
Unparse a configuration object. More... | |
![]() | |
virtual | ~CfgToElement () |
Destructor. More... | |
Public Attributes | |
bool | flush_ |
Immediate flush. More... | |
uint64_t | maxsize_ |
Maximum log file size. More... | |
int | maxver_ |
Maximum number of log files in rotation. More... | |
std::string | output_ |
defines logging destination output More... | |
std::string | pattern_ |
defines the log format pattern It dictates what additional elements are output More... | |
Defines single logging destination.
This structure is used to keep log4cplus configuration parameters.
Definition at line 23 of file logging_info.h.
|
inline |
Default constructor.
Definition at line 53 of file logging_info.h.
References toElement().
bool isc::process::LoggingDestination::equals | ( | const LoggingDestination & | other | ) | const |
Compares two objects for equality.
other | Object to be compared with this object. |
Definition at line 24 of file logging_info.cc.
References flush_, maxsize_, maxver_, output_, output_, and pattern_.
Referenced by isc::process::LoggingInfo::clearDestinations(), isc::process::LoggingInfo::operator!=(), and isc::process::LoggingInfo::operator==().
|
virtual |
Unparse a configuration object.
Implements isc::data::CfgToElement.
Definition at line 33 of file logging_info.cc.
References output_.
Referenced by LoggingDestination(), and isc::process::LoggingInfo::operator!=().
bool isc::process::LoggingDestination::flush_ |
Immediate flush.
Definition at line 39 of file logging_info.h.
Referenced by equals(), and isc::process::LogConfigParser::parseConfiguration().
uint64_t isc::process::LoggingDestination::maxsize_ |
Maximum log file size.
Definition at line 36 of file logging_info.h.
Referenced by equals(), and isc::process::LogConfigParser::parseConfiguration().
int isc::process::LoggingDestination::maxver_ |
Maximum number of log files in rotation.
Definition at line 33 of file logging_info.h.
Referenced by equals(), and isc::process::LogConfigParser::parseConfiguration().
std::string isc::process::LoggingDestination::output_ |
defines logging destination output
Values accepted are: stdout, stderr, syslog, syslog:name. Any other destination will be considered a file name.
Definition at line 30 of file logging_info.h.
Referenced by equals(), isc::process::LoggingInfo::LoggingInfo(), and isc::process::LogConfigParser::parseConfiguration().
std::string isc::process::LoggingDestination::pattern_ |
defines the log format pattern It dictates what additional elements are output
Definition at line 43 of file logging_info.h.
Referenced by equals(), and isc::process::LogConfigParser::parseConfiguration().