Flexible, powerful, configurable logging framework. More...
Flexible, powerful, configurable logging framework.
typedef ICL_CORE_VC_DEPRECATE UdpLogOutput tUdpLogOutput icl_core::logging::ICL_CORE_GCC_DEPRECATE |
Definition at line 32 of file tFileLogOutput.h.
typedef LogOutputStream*(* icl_core::logging::LogOutputStreamFactory)(const icl_core::String &name, const icl_core::String &config_prefix, LogLevel log_level) |
Definition at line 48 of file LoggingManager.h.
typedef LogStream*(* icl_core::logging::LogStreamFactory)() |
Definition at line 51 of file LoggingManager.h.
typedef std::set<LogStream*> icl_core::logging::LogStreamSet |
Definition at line 49 of file LogStream.h.
Enumerates the available log levels.
The log level eLL_MUTE should not be used for log messages. It is intended to "mute" a log or log output stream (i.e. prevent that log messages are output).
Definition at line 49 of file LogLevel.h.
boost::shared_ptr< LifeCycle > ICL_CORE_LOGGING_IMPORT_EXPORT icl_core::logging::autoStart | ( | int & | argc, |
char * | argv[] | ||
) |
Definition at line 114 of file icl_core/src/icl_core_logging/Logging.cpp.
ThreadStream& icl_core::logging::endl | ( | ThreadStream & | stream | ) | [inline] |
Does the same as flush() but writes a newline first.
Definition at line 249 of file ThreadStream.h.
ThreadStream& icl_core::logging::flush | ( | ThreadStream & | stream | ) | [inline] |
This function (or better a pointer to this function) can be streamed into a ThreadStream in order to force the stream to write out its current buffer.
Definition at line 241 of file ThreadStream.h.
bool ICL_CORE_LOGGING_IMPORT_EXPORT icl_core::logging::initialize | ( | int & | argc, |
char * | argv[], | ||
bool | remove_read_arguments | ||
) |
Convenience function to initialize the logging framework.
Also initializes the configuration framework.
Definition at line 87 of file icl_core/src/icl_core_logging/Logging.cpp.
bool ICL_CORE_LOGGING_IMPORT_EXPORT icl_core::logging::initialize | ( | int & | argc, |
char * | argv[], | ||
icl_core::config::Getopt::CommandLineCleaning | cleanup = icl_core::config::Getopt::eCLC_None , |
||
icl_core::config::Getopt::ParameterRegistrationCheck | registration_check = icl_core::config::Getopt::ePRC_Strict |
||
) |
Convenience function to initialize the logging framework.
Also initializes the configuration framework.
Definition at line 95 of file icl_core/src/icl_core_logging/Logging.cpp.
Convenience function to initialize the logging framework.
Use this version if you already have initialized the configuration framework.
Definition at line 104 of file icl_core/src/icl_core_logging/Logging.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT const char * icl_core::logging::logLevelDescription | ( | LogLevel | log_level | ) |
Returns the textual description of the specified log level.
log_level | The log level to be transformed into a string. |
Definition at line 28 of file LogLevel.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
const icl_core::TimeStamp & | time_stamp | ||
) |
Definition at line 18 of file icl_core/src/icl_core_logging/Logging.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
const icl_core::TimeSpan & | time_span | ||
) |
Definition at line 43 of file icl_core/src/icl_core_logging/Logging.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
uint8_t | value | ||
) |
Definition at line 149 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
uint16_t | value | ||
) |
Definition at line 157 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
uint32_t | value | ||
) |
Definition at line 165 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
unsigned long | value | ||
) |
Definition at line 174 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
uint64_t | value | ||
) |
Definition at line 183 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
int8_t | value | ||
) |
Definition at line 191 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
int16_t | value | ||
) |
Definition at line 199 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
int32_t | value | ||
) |
Definition at line 207 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
long | value | ||
) |
Definition at line 216 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
int64_t | value | ||
) |
Definition at line 225 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
const char * | text | ||
) |
Definition at line 243 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
const std::string & | text | ||
) |
Definition at line 249 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
double | value | ||
) |
Definition at line 255 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
bool | value | ||
) |
Definition at line 263 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
void * | value | ||
) |
Definition at line 276 of file ThreadStream.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT ThreadStream & icl_core::logging::operator<< | ( | ThreadStream & | stream, |
const ThreadId & | thread_id | ||
) |
Definition at line 285 of file ThreadStream.cpp.
Convenience function to shutdown the logging framework.
Definition at line 109 of file icl_core/src/icl_core_logging/Logging.cpp.
ICL_CORE_LOGGING_IMPORT_EXPORT bool icl_core::logging::stringToLogLevel | ( | const icl_core::String & | log_level_text, |
LogLevel & | log_level | ||
) |
Tries to convert a string into a log level.
log_level_text | Input parameter containing the text to be converted. |
log_level | Output parameter to which the log level is written on success. If the conversion is not possible then this parameter is not altered. |
true
if the conversion was successful, false
if the specified text did not match any defined log level. Definition at line 40 of file LogLevel.cpp.
The log level which is used initially.
Definition at line 60 of file LogLevel.h.
const size_t icl_core::logging::cMAX_DESCRIPTION_LENGTH = 1024 |
The buffer size for filenames and object descriptions.
Definition at line 47 of file Constants.h.
const size_t icl_core::logging::cMAX_IDENTIFIER_LENGTH = 256 |
The buffer size for identifiers (log stream names, class names and function names).
Definition at line 42 of file Constants.h.
{ "Trace", "Debug", "Info", "Warning", "Error", "Mute", NULL }
Definition at line 17 of file LogLevel.cpp.