Kea: logger_support.h Source File

| Kea 3.2.0-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>
14#include <log/logger_unittest_support.h>
15
21
22namespace isc {
23namespace log {
24
33bool isLoggingInitialized();
34
39void setLoggingInitialized(bool state = true);
40
59void initLogger(const std::string& root,
60 isc::log::Severity severity = isc::log::INFO,
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
logger.h
logger_unittest_support.h
Miscellaneous logging functions used by the unit tests.
isc::log
Definition buffer_appender_impl.cc:17
isc::log::setLoggingInitialized
void setLoggingInitialized(bool state)
Set state of "logging initialized" flag.
Definition logger_support.cc:38
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:45
isc::log::isLoggingInitialized
bool isLoggingInitialized()
Is logging initialized?
Definition logger_support.cc:30
isc::log::setDefaultLoggingOutput
void setDefaultLoggingOutput(bool verbose)
Reset root logger characteristics.
Definition logger_support.cc:54
isc::log::Severity
Severity
Severity Levels.
Definition logger_level.h:23
isc::log::INFO
@ INFO
Definition logger_level.h:26
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18