Kea 2.7.5
logger_level.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_LEVEL_H
8#define LOGGER_LEVEL_H
9
10#include <string>
11
12namespace isc {
13namespace log {
14
22
23typedef enum {
24 DEFAULT = 0, // Default to logging level of the parent
25 DEBUG = 1,
26 INFO = 2,
27 WARN = 3,
28 ERROR = 4,
29 FATAL = 5,
30 NONE = 6 // Disable logging
32
34
35const int MIN_DEBUG_LEVEL = 0;
36const int MAX_DEBUG_LEVEL = 99;
37
42struct Level {
45
47 severity(sev), dbglevel(dbg)
48 {}
49
50 // Default assignment and copy constructor is appropriate
51};
52
63isc::log::Severity getSeverity(const std::string& sev_str);
64
65} // namespace log
66} // namespace isc
67
68#endif // LOGGER_LEVEL_H
isc::log::Severity getSeverity(const std::string &sev_str)
Returns the isc::log::Severity value represented by the given string.
const int MAX_DEBUG_LEVEL
const int MIN_DEBUG_LEVEL
Minimum/maximum debug levels.
Severity
Severity Levels.
Defines the logger used by the top-level component of kea-lfc.
Log level structure.
int dbglevel
Debug level.
Level(Severity sev=DEFAULT, int dbg=MIN_DEBUG_LEVEL)
Severity severity
Logging severity.