Wolframe, 0.0.3

_Wolframe::log::LoggerConfiguration Struct Reference

logger configuration More...

#include <standardConfigs.hpp>

Inheritance diagram for _Wolframe::log::LoggerConfiguration:
_Wolframe::config::ConfigurationBase

Public Member Functions

 LoggerConfiguration ()
 constructor More...
 
bool parse (const config::ConfigurationNode &pt, const std::string &node, const module::ModulesDirectory *modules)
 methods More...
 
bool check () const
 
void print (std::ostream &os, size_t indent) const
 
void setCanonicalPathes (const std::string &referencePath)
 
void foreground (LogLevel::Level debugLevel, bool useConfig)
 
- Public Member Functions inherited from _Wolframe::config::ConfigurationBase
 ConfigurationBase (const char *sectionName_, const char *logParent_, const char *logName_)
 
virtual ~ConfigurationBase ()
 
const std::string & sectionName () const
 The display string (name) for the configuration section. More...
 
const std::string & logPrefix () const
 

Public Attributes

bool logToStderr
 
LogLevel::Level stderrLogLevel
 
bool logToFile
 
std::string logFile
 
LogLevel::Level logFileLogLevel
 
std::string logFileIdent
 
bool logToSyslog
 
SyslogFacility::Facility syslogFacility
 
LogLevel::Level syslogLogLevel
 
std::string syslogIdent
 

Detailed Description

logger configuration

Constructor & Destructor Documentation

_Wolframe::log::LoggerConfiguration::LoggerConfiguration ( )

constructor

Member Function Documentation

bool _Wolframe::log::LoggerConfiguration::check ( ) const
virtual

Check if the server configuration makes sense

Be aware that this function does NOT test if the configuration can be used. It only tests if it MAY be valid. This function will log errors / warnings

Returns
true if the configuration has no errors, false otherwise

Reimplemented from _Wolframe::config::ConfigurationBase.

void _Wolframe::log::LoggerConfiguration::foreground ( LogLevel::Level  debugLevel,
bool  useConfig 
)
bool _Wolframe::log::LoggerConfiguration::parse ( const config::ConfigurationNode pt,
const std::string &  node,
const module::ModulesDirectory modules 
)
virtual
void _Wolframe::log::LoggerConfiguration::print ( std::ostream &  os,
size_t  indent 
) const
virtual

Print the configuration This function is supposed to print the running configuration, this means all the configuration parameters, not only those that were set in the configuration file.

Parameters
[in]osstream to use for printing
[in]indentprint indented with this number of spaces

Implements _Wolframe::config::ConfigurationBase.

void _Wolframe::log::LoggerConfiguration::setCanonicalPathes ( const std::string &  )
virtual

Set the pathes in the configuration to absolute values

Parameters
[in]refPathuse this path as reference when computing the absolute pathes

Reimplemented from _Wolframe::config::ConfigurationBase.

Member Data Documentation

std::string _Wolframe::log::LoggerConfiguration::logFile
std::string _Wolframe::log::LoggerConfiguration::logFileIdent
LogLevel::Level _Wolframe::log::LoggerConfiguration::logFileLogLevel
bool _Wolframe::log::LoggerConfiguration::logToFile
bool _Wolframe::log::LoggerConfiguration::logToStderr
bool _Wolframe::log::LoggerConfiguration::logToSyslog
LogLevel::Level _Wolframe::log::LoggerConfiguration::stderrLogLevel
SyslogFacility::Facility _Wolframe::log::LoggerConfiguration::syslogFacility
std::string _Wolframe::log::LoggerConfiguration::syslogIdent
LogLevel::Level _Wolframe::log::LoggerConfiguration::syslogLogLevel

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