Kea 2.7.5
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
22namespace isc {
23namespace log {
24
34
39void setLoggingInitialized(bool state = true);
40
59void initLogger(const std::string& root,
61 int dbglevel = 0, const char* file = NULL,
62 bool buffer = false);
63
72void setDefaultLoggingOutput(bool verbose = true);
73
74
75} // namespace log
76} // namespace isc
77
78#endif // LOGGER_SUPPORT_H
Miscellaneous logging functions used by the unit tests.
void setLoggingInitialized(bool state)
Set state of "logging initialized" flag.
void initLogger(const string &root, isc::log::Severity severity, int dbglevel, const char *file, bool buffer)
Run-time initialization.
bool isLoggingInitialized()
Is logging initialized?
void setDefaultLoggingOutput(bool verbose)
Reset root logger characteristics.
Severity
Severity Levels.
Defines the logger used by the top-level component of kea-lfc.