rootlogger.h
Go to the documentation of this file.
// -*- C++ -*-
// Module: Log4CPLUS
// File: rootlogger.h
// Created: 6/2001
// Author: Tad E. Smith
//
//
// Copyright 2001-2017 Tad E. Smith
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef LOG4CPLUS_SPI_ROOT_LOGGER_HEADER_
#define LOG4CPLUS_SPI_ROOT_LOGGER_HEADER_
#include <log4cplus/config.hxx>
#if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
#pragma once
#endif
#include <log4cplus/spi/loggerimpl.h>
namespace log4cplus {
namespace spi {
class LOG4CPLUS_EXPORT RootLogger : public LoggerImpl {
public:
// Ctors
RootLogger(Hierarchy& h, LogLevel ll);
// Methods
virtual LogLevel getChainedLogLevel() const;
void setLogLevel(LogLevel);
};
} // end namespace spi
} // end namespace log4cplus
#endif // LOG4CPLUS_SPI_ROOT_LOGGER_HEADER_
log4cplus::spi::LoggerImpl::Hierarchy
friend class log4cplus::Hierarchy
Definition loggerimpl.h:208
log4cplus::spi::LoggerImpl::LoggerImpl
LoggerImpl(const log4cplus::tstring &name, Hierarchy &h)
This constructor created a new Logger instance and sets its name.
log4cplus::spi::LoggerImpl::ll
LogLevel ll
The assigned LogLevel of this logger.
Definition loggerimpl.h:177
log4cplus::spi::RootLogger::setLogLevel
void setLogLevel(LogLevel)
Setting a NOT_SET_LOG_LEVEL value to the LogLevel of the root logger may have catastrophic results.
log4cplus::spi::RootLogger::RootLogger
RootLogger(Hierarchy &h, LogLevel ll)
The root logger names itself as "root".
log4cplus::spi::RootLogger::getChainedLogLevel
virtual LogLevel getChainedLogLevel() const
Return the assigned LogLevel value without walking the logger hierarchy.
config.hxx
loggerimpl.h
log4cplus::spi
Definition layout.h:62
log4cplus
Definition appender.h:46
log4cplus::LogLevel
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
Definition loglevel.h:48
LOG4CPLUS_EXPORT
#define LOG4CPLUS_EXPORT
Definition win32.h:141