Kea 3.1.1
legal_syslog.h
Go to the documentation of this file.
1// Copyright (C) 2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef LEGAL_SYSLOG_H
8#define LEGAL_SYSLOG_H
9
11
12namespace isc {
13namespace legal_log {
14
16public:
27
31 virtual ~LegalSyslog() = default;
32
34 virtual void open();
35
37 virtual void close();
38
44 virtual void writeln(const std::string& text, const std::string& addr);
45
51 virtual std::string getType() const;
52
53private:
55 std::shared_ptr<isc::log::Logger> logger_;
56
57public:
66};
67
68} // namespace legal_log
69} // namespace isc
70
71#endif
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
LegalLogMgr abstract class.
virtual std::string getType() const
Return backend type.
LegalSyslog(const isc::db::DatabaseConnection::ParameterMap &parameters)
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 &parameters)
Factory class method.
virtual void close()
Closes the store.
virtual void open()
Opens the store.
virtual ~LegalSyslog()=default
Destructor.
boost::shared_ptr< LegalLogMgr > LegalLogMgrPtr
Defines a smart pointer to a LegalLogMgr.
Defines the logger used by the top-level component of kea-lfc.