| Kea 3.0.2-git

logger_unittest_support.h
Go to the documentation of this file.
1// Copyright (C) 2011-2015 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_UNITTEST_SUPPORT_H
8#define LOGGER_UNITTEST_SUPPORT_H
9
10#include <string>
11#include <log/logger.h>
12
19
20 namespace isc {
21 namespace log {
22
71 void initLogger(isc::log::Severity severity = isc::log::DEBUG,
72 int dbglevel = isc::log::MAX_DEBUG_LEVEL);
73
74
82// defined.
85 isc::log::Severity keaLoggerSeverity(isc::log::Severity defseverity);
86
87
104 int keaLoggerDbglevel(int defdbglevel);
105
106} // namespace log
107} // namespace isc
108
109
110
111#endif // LOGGER_UNITTEST_SUPPORT_H
logger.h
isc::log
Definition buffer_appender_impl.cc:17
isc::log::initLogger
void initLogger(const string &root, isc::log::Severity severity, int dbglevel, const char *file, bool buffer)
Run-time initialization.
Definition logger_support.cc:43
isc::log::MAX_DEBUG_LEVEL
const int MAX_DEBUG_LEVEL
Definition logger_level.h:36
isc::log::keaLoggerDbglevel
int keaLoggerDbglevel(int defdbglevel)
Obtains logging debug level from KEA_LOGGER_DBGLEVEL.
Definition logger_unittest_support.cc:44
isc::log::Severity
Severity
Severity Levels.
Definition logger_level.h:23
isc::log::DEBUG
@ DEBUG
Definition logger_level.h:25
isc::log::keaLoggerSeverity
isc::log::Severity keaLoggerSeverity(isc::log::Severity defseverity)
Obtains logging severity from KEA_LOGGER_SEVERITY.
Definition logger_unittest_support.cc:32
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148