17#ifndef _DECAF_UTIL_LOGGING_LOGMANAGER_H_
18#define _DECAF_UTIL_LOGGING_LOGMANAGER_H_
45 class LogManagerInternals;
46 class PropertyChangeListener;
151 std::list<PropertyChangeListener*> listeners;
157 LogManagerInternals* internal;
295 static void initialize();
300 static void shutdown();
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
There is a single global LogManager object that is used to maintain a set of shared state about Logge...
Definition: LogManager.h:147
Logger * getLogger(const std::string &name)
Retrieves or creates a new Logger using the name specified a new logger inherits the configuration of...
LogManager(const LogManager &manager)
Copy Constructor.
LogManager()
Constructor, hidden to protect against direct instantiation.
void removePropertyChangeListener(PropertyChangeListener *listener)
Removes a properties change listener from the LogManager, if the listener is not found of the param i...
const util::Properties & getProperties() const
Gets a reference to the Logging Properties used by this logger.
Definition: LogManager.h:208
static LogManager & getLogManager()
Get the global LogManager instance.
void addPropertyChangeListener(PropertyChangeListener *listener)
Adds a change listener for LogManager Properties, adding the same instance of a change event listener...
void setProperties(const util::Properties &properties)
Sets the Properties this LogManager should use to configure its loggers.
void reset()
Reset the logging configuration.
std::string getProperty(const std::string &name)
Gets the value of a named property of this LogManager.
int getLoggerNames(const std::vector< std::string > &names)
Gets a list of known Logger Names from this Manager, new loggers added while this method is in progre...
void readConfiguration(decaf::io::InputStream *stream)
Reinitialize the logging properties and reread the logging configuration from the given stream,...
void readConfiguration()
Reinitialize the logging properties and reread the logging configuration.
void operator=(const LogManager &manager)
Assignment operator.
bool addLogger(Logger *logger)
Add a named logger.
A Logger object is used to log messages for a specific system or application component.
Definition: Logger.h:86
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: AprPool.h:25