27 #ifndef ICL_CORE_LOGGING_LOGGING_MANAGER_H_INCLUDED 28 #define ICL_CORE_LOGGING_LOGGING_MANAGER_H_INCLUDED 36 #include <boost/shared_ptr.hpp> 38 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 45 class LogOutputStream;
67 return manager_instance;
96 void assertInitialized()
const;
104 void removeLogOutputStream(
LogOutputStream *log_output_stream,
bool remove_from_list =
true);
112 void registerLogStream(
LogStream *log_stream);
122 void printConfiguration()
const;
127 void changeLogFormat(
const icl_core::String& name,
const char *format =
"~T ~S(~L)~ C~(O~::D: ~E");
140 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 180 bool remove_from_list =
true)
212 const char *format =
"~T ~S(~L)~ C~(O~::D: ~E")
314 typedef boost::shared_ptr<LifeCycle>
Ptr;
316 typedef boost::shared_ptr<const LifeCycle>
ConstPtr;
LogOutputStreamFactoryMap m_log_output_stream_factories
bool initialize(int &argc, char *argv[], bool remove_read_arguments)
icl_core::String name
The name of the output stream instance which will be created.
Configuration of a LogOutputStream.
#define ICL_CORE_VC_DEPRECATE_STYLE
LogStreamFactoryMap m_log_stream_factories
boost::shared_ptr< const LifeCycle > ConstPtr
Convenience shared pointer shorthand (const version).
Contains macros to deprecate classes, types, functions and variables.
Configuration of a LogStream.
Contains import/export definitions for the Win32 plattform.
static LoggingManager & instance()
icl_core::Map< icl_core::String, LogStreamConfig > LogStreamConfigMap
ICL_CORE_VC_DEPRECATE_STYLE bool Initialize(int &argc, char *argv[], bool remove_read_arguments) ICL_CORE_GCC_DEPRECATE_STYLE
icl_core::Map< icl_core::String, LogOutputStreamFactory > LogOutputStreamFactoryMap
Manages the logging framework.
icl_core::String output_stream_name
icl_core::Map< icl_core::String, LogStream * > LogStreamMap
LogStream *(* LogStreamFactory)()
LogOutputStream *(* LogOutputStreamFactory)(const icl_core::String &name, const icl_core::String &config_prefix, LogLevel log_level)
icl_core::Map< icl_core::String, LogStreamFactory > LogStreamFactoryMap
LogOutputStream * m_default_log_output
Implements a thread-safe logging framework.
LogLevel log_level
The log level of this output stream.
icl_core::Map< icl_core::String, LogOutputStream * > LogOutputStreamMap
StringList log_streams
All associated log streams.
void setLogLevel(icl_core::logging::LogLevel log_level)
Set a global log level for all streams.
LogOutputStreamConfigMap m_output_stream_config
LogOutputStreamMap m_log_output_streams
icl_core::String name
Name of the log stream.
This is an output stream class for log messages.
Contains icl_logging::LogLevel.
Contains Interface base classes and base types.
icl_core::Map< icl_core::String, LogOutputStreamConfig > LogOutputStreamConfigMap
boost::shared_ptr< LifeCycle > Ptr
Convenience shared pointer shorthand.
LogLevel log_level
Log level of the log stream.
LogStreamConfigMap m_log_stream_config
#define ICL_CORE_LOGGING_IMPORT_EXPORT
icl_core::List< icl_core::String > StringList
LogStreamMap m_log_streams
#define ICL_CORE_GCC_DEPRECATE_STYLE