Kea
2.7.8
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
d
e
f
h
i
k
m
n
o
p
r
s
t
u
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
y
Related Symbols
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
a
b
c
d
e
g
h
i
l
m
n
p
q
r
s
u
v
w
y
Variables
b
c
d
e
f
h
l
n
o
p
q
r
s
t
u
y
Typedefs
Enumerations
Enumerator
d
s
Macros
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
y
▼
Kea
►
Kea Developer's Guide
►
Kea Bootp Hooks Library
►
Kea Flexible Option Hooks Library
►
Kea PerfMon Hooks Library
►
libkea-d2srv - Kea D2 Server Library
►
libkea-kea_tcp - TCP Listener Library
Todo List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
►
bin
►
hooks
▼
lib
►
asiodns
►
asiolink
►
cc
►
config
►
config_backend
►
cryptolink
►
d2srv
►
database
►
dhcp
►
dhcp_ddns
►
dhcpsrv
►
dns
►
eval
►
exceptions
►
hooks
►
http
▼
log
►
compiler
►
interprocess
buffer_appender_impl.cc
►
buffer_appender_impl.h
►
log_dbglevels.cc
log_dbglevels.h
►
log_formatter.cc
►
log_formatter.h
►
log_messages.cc
log_messages.h
logger.cc
►
logger.h
►
logger_impl.cc
►
logger_impl.h
►
logger_level.cc
►
logger_level.h
logger_level_impl.cc
►
logger_level_impl.h
logger_manager.cc
►
logger_manager.h
logger_manager_impl.cc
►
logger_manager_impl.h
►
logger_name.cc
►
logger_name.h
►
logger_specification.h
►
logger_support.cc
►
logger_support.h
►
logger_unittest_support.cc
►
logger_unittest_support.h
►
logimpl_messages.cc
logimpl_messages.h
►
macros.h
message_dictionary.cc
►
message_dictionary.h
►
message_exception.h
message_initializer.cc
►
message_initializer.h
message_reader.cc
►
message_reader.h
►
message_types.h
►
output_option.cc
►
output_option.h
►
mysql
►
pgsql
►
process
►
stats
►
tcp
►
testutils
►
util
►
yang
►
File Members
logger_level.cc
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
#include <config.h>
8
9
#include <
log/logger_level.h
>
10
#include <
log/macros.h
>
11
#include <
log/log_messages.h
>
12
13
#include <boost/algorithm/string.hpp>
14
15
16
namespace
isc
{
17
namespace
log {
18
19
isc::log::Severity
20
getSeverity
(
const
std::string& sev_str) {
21
if
(boost::iequals(sev_str,
"DEBUG"
)) {
22
return
isc::log::DEBUG
;
23
}
else
if
(boost::iequals(sev_str,
"INFO"
)) {
24
return
isc::log::INFO
;
25
}
else
if
(boost::iequals(sev_str,
"WARN"
)) {
26
return
isc::log::WARN
;
27
}
else
if
(boost::iequals(sev_str,
"ERROR"
)) {
28
return
isc::log::ERROR
;
29
}
else
if
(boost::iequals(sev_str,
"FATAL"
)) {
30
return
isc::log::FATAL
;
31
}
else
if
(boost::iequals(sev_str,
"NONE"
)) {
32
return
isc::log::NONE
;
33
}
else
{
34
Logger
logger(
"log"
);
35
LOG_ERROR
(logger,
LOG_BAD_SEVERITY
).arg(sev_str);
36
return
isc::log::INFO
;
37
}
38
}
20
getSeverity
(
const
std::string& sev_str) {
…
}
39
40
41
}
// namespace log
42
}
// namespace isc
isc::log::Logger
Logger Class.
Definition
log/logger.h:142
log_messages.h
logger_level.h
macros.h
LOG_ERROR
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
Definition
macros.h:32
isc::log::LOG_BAD_SEVERITY
const isc::log::MessageID LOG_BAD_SEVERITY
Definition
log_messages.h:12
isc::log::getSeverity
isc::log::Severity getSeverity(const std::string &sev_str)
Returns the isc::log::Severity value represented by the given string.
Definition
logger_level.cc:20
isc::log::Severity
Severity
Severity Levels.
Definition
logger_level.h:23
isc::log::WARN
@ WARN
Definition
logger_level.h:27
isc::log::NONE
@ NONE
Definition
logger_level.h:30
isc::log::ERROR
@ ERROR
Definition
logger_level.h:28
isc::log::INFO
@ INFO
Definition
logger_level.h:26
isc::log::FATAL
@ FATAL
Definition
logger_level.h:29
isc::log::DEBUG
@ DEBUG
Definition
logger_level.h:25
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
log
logger_level.cc
Generated on Thu Apr 17 2025 11:33:29 for Kea by
1.12.0