Kea 2.7.5
logger_level_impl.h
Go to the documentation of this file.
1// Copyright (C) 2011-2017 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 LOGGER_LEVEL_IMPL_H
8#define LOGGER_LEVEL_IMPL_H
9
10#include <log4cplus/logger.h>
11#include <log4cplus/version.h>
12#include <log/logger_level.h>
13
14namespace isc {
15namespace log {
16
57
59public:
60
61typedef log4cplus::tstring LogLevelString;
62
72 static
73 log4cplus::LogLevel convertFromBindLevel(const isc::log::Level& level);
74
84 static
85 isc::log::Level convertToBindLevel(const log4cplus::LogLevel loglevel);
86
99 static
100 log4cplus::LogLevel logLevelFromString(const log4cplus::tstring& level);
101
110#if LOG4CPLUS_VERSION < LOG4CPLUS_MAKE_VERSION(2, 0, 0)
111 static LogLevelString logLevelToString(log4cplus::LogLevel level);
112#else
113 static const LogLevelString& logLevelToString(log4cplus::LogLevel level);
114#endif
115
120 static void init();
121};
122
123} // namespace log
124} // namespace isc
125
126#endif // LOGGER_LEVEL_IMPL_H
Implementation aspects of logging levels.
static log4cplus::LogLevel convertFromBindLevel(const isc::log::Level &level)
Convert Kea level to log4cplus logging level.
static const LogLevelString & logLevelToString(log4cplus::LogLevel level)
Convert log level to string.
static log4cplus::LogLevel logLevelFromString(const log4cplus::tstring &level)
Convert string to log4cplus logging level.
log4cplus::tstring LogLevelString
static isc::log::Level convertToBindLevel(const log4cplus::LogLevel loglevel)
Convert log4cplus logging level to Kea logging level.
static void init()
Initialize extended logging levels.
Defines the logger used by the top-level component of kea-lfc.
Log level structure.