Kea 3.3.4
legal_log_db_log.cc
Go to the documentation of this file.
1// Copyright (C) 2018-2026 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
8
9#include <config.h>
10
12
13#include <mutex>
14
15using namespace isc::db;
16using namespace std;
17
18namespace isc {
19
20namespace db {
21
22extern mutex db_logger_mutex;
23
24} // namespace db
25
26namespace dhcp {
27
29 lock_guard<mutex> lk(db_logger_mutex);
30 db_logger_stack.push_back(legal_log_db_logger);
31}
32
34 lock_guard<mutex> lk(db_logger_mutex);
35 db_logger_stack.pop_back();
36}
37
38} // namespace dhcp
39} // namespace isc
Database logger class.
Definition db_log.h:83
LegalLogDbLogger(isc::db::DbLogger &legal_log_db_logger)
Constructor.
DbLoggerStack db_logger_stack
Global database logger stack (initialized to database logger).
Definition db_log.cc:56
std::mutex db_logger_mutex
Global mutex to protect logger stack.
Definition db_log.cc:58
Defines the logger used by the top-level component of kea-lfc.