31 info.clearDestinations();
39 info.name_ =
"legal-log-";
40 info.name_ += boost::lexical_cast<std::string>(
reinterpret_cast<uint64_t
>(
this));
44 if (parameters.find(
"facility") != parameters.end()) {
45 dest.
output_ += parameters.at(
"facility");
49 if (parameters.find(
"pattern") != parameters.end()) {
50 dest.
pattern_ = parameters.at(
"pattern");
52 info.destinations_.push_back(dest);
static std::string redactedAccessString(const ParameterMap ¶meters)
Redact database access string.
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
static CfgMgr & instance()
returns a single instance of Configuration Manager
SrvConfigPtr getStagingCfg()
Returns a pointer to the staging configuration.
LegalLogMgr(const isc::db::DatabaseConnection::ParameterMap parameters)
Constructor.
virtual std::string getType() const
Return backend type.
LegalSyslog(const isc::db::DatabaseConnection::ParameterMap ¶meters)
Constructor.
virtual void writeln(const std::string &text, const std::string &addr)
Appends a string to the store with a timestamp and address.
static isc::dhcp::LegalLogMgrPtr factory(const isc::db::DatabaseConnection::ParameterMap ¶meters)
Factory class method.
virtual void close()
Closes the store.
virtual void open()
Opens the store.
structure that describes one logging entry
const isc::log::MessageID LEGAL_LOG_SYSLOG
const isc::log::MessageID LEGAL_LOG_SYSLOG_STORE_OPEN
#define LOG_INFO(LOGGER, MESSAGE)
Macro to conveniently test info output and log it.
boost::shared_ptr< LegalLogMgr > LegalLogMgrPtr
Defines a smart pointer to a LegalLogMgr.
isc::log::Logger legal_log_logger("legal-log-hooks")
Legal Log Logger.
Defines the logger used by the top-level component of kea-lfc.
Defines single logging destination.
std::string output_
defines logging destination output
std::string pattern_
defines the log format pattern It dictates what additional elements are output