Kea: logger_name.h Source File

| Kea 3.0.0

logger_name.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_NAME_H
8#define LOGGER_NAME_H
9
10#include <string>
11
16// is something like "root"). These trivial functions allow the setting and
17// getting of that name by the logger classes.
18
19namespace isc {
20namespace log {
21
28void setRootLoggerName(const std::string& name);
29
33const std::string& getRootLoggerName();
34
35
39const std::string& getDefaultRootLoggerName();
40
50std::string expandLoggerName(const std::string& name);
51
52}
53}
54
55#endif // LOGGER_NAME_H
isc::log
Definition buffer_appender_impl.cc:17
isc::log::getRootLoggerName
const std::string & getRootLoggerName()
Get root logger name.
Definition logger_name.cc:33
isc::log::expandLoggerName
std::string expandLoggerName(const std::string &name)
Expand logger name.
Definition logger_name.cc:42
isc::log::setRootLoggerName
void setRootLoggerName(const std::string &name)
Set root logger name.
Definition logger_name.cc:29
isc::log::getDefaultRootLoggerName
const std::string & getDefaultRootLoggerName()
Returns the default ('kea') root logger name.
Definition logger_name.cc:37
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148