Kea  1.9.9-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 
72  int dbglevel = isc::log::MAX_DEBUG_LEVEL);
73 
74 
82 // defined.
86 
87 
104 int keaLoggerDbglevel(int defdbglevel);
105 
106 } // namespace log
107 } // namespace isc
108 
109 
110 
111 #endif // LOGGER_UNITTEST_SUPPORT_H
isc::log::Severity keaLoggerSeverity(isc::log::Severity defseverity)
Obtains logging severity from KEA_LOGGER_SEVERITY.
int keaLoggerDbglevel(int defdbglevel)
Obtains logging debug level from KEA_LOGGER_DBGLEVEL.
Severity
Severity Levels.
Definition: logger_level.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.
void initLogger(const string &root, isc::log::Severity severity, int dbglevel, const char *file, bool buffer)
Run-time initialization.
const int MAX_DEBUG_LEVEL
Definition: logger_level.h:36