Kea  1.9.9-git
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
void setDefaultLoggingOutput(bool verbose)
Reset root logger characteristics.
Severity
Severity Levels.
Definition: logger_level.h:23
bool isLoggingInitialized()
Is logging initialized?
void setLoggingInitialized(bool state)
Set state of "logging initialized" flag.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Miscellaneous logging functions used by the unit tests.
void initLogger(const string &root, isc::log::Severity severity, int dbglevel, const char *file, bool buffer)
Run-time initialization.