Kea 2.7.6
isc::process::LoggingDestination Struct Reference

Defines single logging destination. More...

#include <logging_info.h>

+ Inheritance diagram for isc::process::LoggingDestination:

Public Member Functions

 LoggingDestination ()
 Default constructor.
 
bool equals (const LoggingDestination &other) const
 Compares two objects for equality.
 
virtual isc::data::ElementPtr toElement () const
 Unparse a configuration object.
 
- Public Member Functions inherited from isc::data::CfgToElement
virtual ~CfgToElement ()
 Destructor.
 

Public Attributes

bool flush_
 Immediate flush.
 
uint64_t maxsize_
 Maximum log file size.
 
int maxver_
 Maximum number of log files in rotation.
 
std::string output_
 defines logging destination output
 
std::string pattern_
 defines the log format pattern It dictates what additional elements are output
 

Detailed Description

Defines single logging destination.

This structure is used to keep log4cplus configuration parameters.

Definition at line 23 of file logging_info.h.

Constructor & Destructor Documentation

◆ LoggingDestination()

isc::process::LoggingDestination::LoggingDestination ( )
inline

Default constructor.

Definition at line 53 of file logging_info.h.

Member Function Documentation

◆ equals()

bool isc::process::LoggingDestination::equals ( const LoggingDestination & other) const

Compares two objects for equality.

Parameters
otherObject to be compared with this object.
Returns
true if objects are equal, false otherwise.

Definition at line 24 of file logging_info.cc.

References flush_, maxsize_, maxver_, output_, and pattern_.

◆ toElement()

ElementPtr isc::process::LoggingDestination::toElement ( ) const
virtual

Unparse a configuration object.

Returns
a pointer to unparsed configuration

Implements isc::data::CfgToElement.

Definition at line 33 of file logging_info.cc.

References isc::data::Element::create(), isc::data::Element::createMap(), flush_, maxsize_, maxver_, output_, and pattern_.

+ Here is the call graph for this function:

Member Data Documentation

◆ flush_

bool isc::process::LoggingDestination::flush_

Immediate flush.

Definition at line 39 of file logging_info.h.

Referenced by equals(), and toElement().

◆ maxsize_

uint64_t isc::process::LoggingDestination::maxsize_

Maximum log file size.

Definition at line 36 of file logging_info.h.

Referenced by equals(), and toElement().

◆ maxver_

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

◆ output_

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 isc::process::LoggingInfo::LoggingInfo(), equals(), and toElement().

◆ pattern_

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


The documentation for this struct was generated from the following files: