OpenMS  2.4.0
Classes | Namespaces | Macros | Variables
LogStream.h File Reference
#include <OpenMS/DATASTRUCTURES/String.h>
#include <sstream>
#include <iostream>
#include <list>
#include <vector>
#include <ctime>
#include <map>

Go to the source code of this file.

Classes

class  LogStreamBuf
 Stream buffer used by LogStream. More...
 
struct  LogStreamBuf::StreamStruct
 Holds a stream that is connected to the LogStream. It also includes the minimum and maximum level at which the LogStream redirects messages to this stream. More...
 
struct  LogStreamBuf::LogCacheStruct
 Holds a counter of occurrences and an index for the occurrence sequence of the corresponding log message. More...
 
class  LogStreamNotifier
 
class  LogStream
 Log Stream Class. More...
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 
 OpenMS::Logger
 Log streams.
 

Macros

#define LOG_FATAL_ERROR   Log_fatal << __FILE__ << "(" << __LINE__ << "): "
 Macro to be used if fatal error are reported (processing stops) More...
 
#define LOG_ERROR   Log_error
 Macro to be used if non-fatal error are reported (processing continues) More...
 
#define LOG_WARN   Log_warn
 Macro if a warning, a piece of information which should be read by the user, should be logged. More...
 
#define LOG_INFO   Log_info
 Macro if a information, e.g. a status should be reported. More...
 
#define LOG_DEBUG   Log_debug << __FILE__ << "(" << __LINE__ << "): "
 Macro for general debugging information. More...
 

Variables

Logger::LogStream Log_fatal
 Global static instance of a LogStream to capture messages classified as fatal errors. By default it is bound to cerr. More...
 
Logger::LogStream Log_error
 Global static instance of a LogStream to capture messages classified as errors. By default it is bound to cerr. More...
 
Logger::LogStream Log_warn
 Global static instance of a LogStream to capture messages classified as warnings. By default it is bound to cout. More...
 
Logger::LogStream Log_info
 Global static instance of a LogStream to capture messages classified as information. By default it is bound to cout. More...
 
Logger::LogStream Log_debug
 Global static instance of a LogStream to capture messages classified as debug output. By default it is not bound to any output stream. TOPP(AS)Base will connect cout, iff 0 < debug-level. More...
 

Macro Definition Documentation

◆ LOG_DEBUG

#define LOG_DEBUG   Log_debug << __FILE__ << "(" << __LINE__ << "): "

◆ LOG_ERROR

#define LOG_ERROR   Log_error

◆ LOG_FATAL_ERROR

#define LOG_FATAL_ERROR   Log_fatal << __FILE__ << "(" << __LINE__ << "): "

Macro to be used if fatal error are reported (processing stops)

◆ LOG_INFO

#define LOG_INFO   Log_info

◆ LOG_WARN

#define LOG_WARN   Log_warn