Kea  1.5.0
logger_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_SUPPORT_H
8 #define LOGGER_SUPPORT_H
9 
10 #include <unistd.h>
11 
12 #include <string>
13 #include <log/logger.h>
15 
21 
22 namespace isc {
23 namespace log {
24 
34 
39 void setLoggingInitialized(bool state = true);
40 
59 void initLogger(const std::string& root,
61  int dbglevel = 0, const char* file = NULL,
62  bool buffer = false);
63 
72 void setDefaultLoggingOutput(bool verbose = true);
73 
74 
75 } // namespace log
76 } // namespace isc
77 
78 #endif // LOGGER_SUPPORT_H
isc::log::setLoggingInitialized
void setLoggingInitialized(bool state)
Set state of "logging initialized" flag.
Definition: logger_support.cc:36
isc::log::setDefaultLoggingOutput
void setDefaultLoggingOutput(bool verbose)
Reset root logger characteristics.
Definition: logger_support.cc:52
isc::log::Severity
Severity
Severity Levels.
Definition: logger_level.h:23
logger.h
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
logger_unittest_support.h
Miscellaneous logging functions used by the unit tests.
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::isLoggingInitialized
bool isLoggingInitialized()
Is logging initialized?
Definition: logger_support.cc:28
isc::log::INFO
@ INFO
Definition: logger_level.h:26