Apache Log4cxx
Version 1.7.0
Toggle main menu visibility
Loading...
Searching...
No Matches
defaultconfigurator.h
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef _LOG4CXX_DEFAULT_CONFIGURATOR_H
19
#define _LOG4CXX_DEFAULT_CONFIGURATOR_H
20
21
#include <
log4cxx/spi/configurator.h
>
22
#include <
log4cxx/spi/loggerrepository.h
>
23
#include <tuple>
24
25
namespace
LOG4CXX_NS
26
{
27
32
class
LOG4CXX_EXPORT DefaultConfigurator
33
{
34
private
:
35
DefaultConfigurator() {}
36
37
public
:
73
static
void
configure
(
spi::LoggerRepositoryPtr
repository);
74
82
static
spi::ConfigurationStatus
tryConfigure
();
83
97
static
void
setConfigurationFileName
(
const
LogString
& path);
98
108
static
void
setConfigurationWatchSeconds
(
int
seconds);
109
149
static
std::tuple<spi::ConfigurationStatus,LogString>
configureFromFile
150
(
const
std::vector<LogString>& directories
151
,
const
std::vector<LogString>& filenames
152
);
153
154
private
:
155
static
const
LogString
getConfigurationFileName();
156
static
const
LogString
getConfiguratorClass();
157
static
int
getConfigurationWatchDelay();
158
159
};
// class DefaultConfigurator
160
}
// namespace log4cxx
161
162
#endif
//_LOG4CXX_DEFAULT_CONFIGURATOR_H
log4cxx::DefaultConfigurator::configure
static void configure(spi::LoggerRepositoryPtr repository)
Configure repository.
log4cxx::DefaultConfigurator::setConfigurationFileName
static void setConfigurationFileName(const LogString &path)
Make path the configuration file used by configure().
log4cxx::DefaultConfigurator::setConfigurationWatchSeconds
static void setConfigurationWatchSeconds(int seconds)
Make seconds the time a background thread will delay before checking for a change to the configuratio...
log4cxx::DefaultConfigurator::tryConfigure
static spi::ConfigurationStatus tryConfigure()
Attempt configuration by calling configure() passing the default repository.
log4cxx::DefaultConfigurator::configureFromFile
static std::tuple< spi::ConfigurationStatus, LogString > configureFromFile(const std::vector< LogString > &directories, const std::vector< LogString > &filenames)
Call configure() passing the default repository after calling setConfigurationFileName() with a path ...
configurator.h
loggerrepository.h
log4cxx::spi::LoggerRepositoryPtr
std::shared_ptr< LoggerRepository > LoggerRepositoryPtr
Definition
optionconverter.h:33
log4cxx::spi::ConfigurationStatus
ConfigurationStatus
Definition
configurator.h:31
log4cxx::LogString
std::basic_string< logchar > LogString
Definition
logstring.h:60
src
main
include
log4cxx
defaultconfigurator.h
Generated by
1.17.0 on
SITE_PUBLISHED_DATE
Copyright © 2017-2026
Apache Software Foundation
. Apache, Chainsaw, log4cxx, Log4j, Log4net, log4php and the Apache logo are
trademarks or registered trademarks
of The Apache Software Foundation.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Privacy Policy
.