#include <conf.h>
Inheritance diagram for xlog::LogRules:
Public Types | |
enum | { lrAccept = 1, lrReject = 0 } |
Type of rules. More... | |
Public Member Functions | |
LogRules (std::string const &name, bool reloadable) | |
Constructor setting directive name and reloadability. | |
LogRules (LogRules const &lr) | |
Copy constructor. | |
virtual LogRules & | operator= (LogRules const &right) |
Assignment operator. | |
ConfRules::Rule const * | match (LogLevel const &level) const |
Returns the first rule that matches the given log level. | |
Protected Member Functions | |
virtual bool | add (conf::Conf &conf, conf::Conf &new_conf) |
Adds directives to a Conf object. |
ConfRules::Rule const* xlog::LogRules::match | ( | LogLevel const & | level | ) | const |
Returns the first rule that matches a given log level.
[in] | level | The log level. |
virtual bool xlog::LogRules::add | ( | conf::Conf & | conf, | |
conf::Conf & | new_conf | |||
) | [protected, virtual] |
This function must be overriden in derived classes to add directives to the given Conf object.
conf | The Conf object that called the ConfBlock::begin() function. DO NOT add directives to this object! ;) | |
new_conf | The Conf object to which you must add the directives. |
Implements conf::ConfBlock.