Kea 2.7.5
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
const std::string & getRootLoggerName()
Get root logger name.
std::string expandLoggerName(const std::string &name)
Expand logger name.
void setRootLoggerName(const std::string &name)
Set root logger name.
const std::string & getDefaultRootLoggerName()
Returns the default ('kea') root logger name.
Defines the logger used by the top-level component of kea-lfc.