103 public std::streambuf
123 explicit LogStreamBuf(std::string log_level = UNKNOWN_LOG_LEVEL);
151 int overflow(
int c = -1)
override;
162 void setLevel(std::string level);
168 std::string getLevel();
203 void distribute_(std::string outstring);
206 std::string expandPrefix_(
const std::string & prefix, time_t time)
const;
237 bool isInCache_(std::string
const & line);
247 std::string addToCache_(std::string
const & line);
250 Size getNextLogCounter_();
269 virtual void logNotify();
358 void setLevel(std::string level);
364 std::string getLevel();
384 void insert(std::ostream & s);
396 void remove(std::ostream & s);
399 void insertNotification(std::ostream & s,
422 void setPrefix(
const std::ostream & s,
const std::string & prefix);
426 void setPrefix(
const std::string & prefix);
435 StreamIterator findStream_(
const std::ostream & stream);
436 bool hasStream_(std::ostream & stream);
450 #define OPENMS_LOG_FATAL_ERROR \ 451 OPENMS_THREAD_CRITICAL(LOGSTREAM) \ 452 OpenMS_Log_fatal << __FILE__ << "(" << __LINE__ << "): " 455 #define OPENMS_LOG_ERROR \ 456 OPENMS_THREAD_CRITICAL(LOGSTREAM) \ 460 #define OPENMS_LOG_WARN \ 461 OPENMS_THREAD_CRITICAL(LOGSTREAM) \ 465 #define OPENMS_LOG_INFO \ 466 OPENMS_THREAD_CRITICAL(LOGSTREAM) \ 470 #define OPENMS_LOG_DEBUG \ 471 OPENMS_THREAD_CRITICAL(LOGSTREAM) \ 472 OpenMS_Log_debug << __FILE__ << "(" << __LINE__ << "): " std::list< LogStreamBuf::StreamStruct >::iterator StreamIterator
Definition: LogStream.h:433
Logger::LogStream OpenMS_Log_error
Global static instance of a LogStream to capture messages classified as errors. By default it is boun...
StreamStruct()
Definition: LogStream.h:182
Logger::LogStream OpenMS_Log_fatal
Global static instance of a LogStream to capture messages classified as fatal errors. By default it is bound to cerr.
Stream buffer used by LogStream.
Definition: LogStream.h:102
Size timestamp
Definition: LogStream.h:221
Logger::LogStream OpenMS_Log_warn
Global static instance of a LogStream to capture messages classified as warnings. By default it is bo...
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static const time_t MAX_TIME
Definition: LogStream.h:112
std::map< std::string, LogCacheStruct > log_cache_
Cache of the last two log messages.
Definition: LogStream.h:232
Logger::LogStream OpenMS_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.
LogStream * registered_at_
Definition: LogStream.h:280
std::string level_
Definition: LogStream.h:209
std::map< Size, std::string > log_time_cache_
Cache of the occurrence sequence of the last two log messages.
Definition: LogStream.h:234
std::stringstream stream_
Definition: LogStream.h:278
std::list< StreamStruct > stream_list_
Definition: LogStream.h:210
Size log_cache_counter_
Definition: LogStream.h:229
Log Stream Class.
Definition: LogStream.h:311
Holds a stream that is connected to the LogStream. It also includes the minimum and maximum level at ...
Definition: LogStream.h:176
static const std::string UNKNOWN_LOG_LEVEL
Definition: LogStream.h:113
Holds a counter of occurrences and an index for the occurrence sequence of the corresponding log mess...
Definition: LogStream.h:219
std::string incomplete_line_
Definition: LogStream.h:211
int counter
Definition: LogStream.h:222
std::string prefix
Definition: LogStream.h:179
Definition: LogStream.h:258
char * pbuf_
Definition: LogStream.h:208
~StreamStruct()
Delete the notification target.
Definition: LogStream.h:188
std::ostream * stream
Definition: LogStream.h:178
Logger::LogStream OpenMS_Log_info
Global static instance of a LogStream to capture messages classified as information. By default it is bound to cout.
LogStreamNotifier * target
Definition: LogStream.h:180
bool delete_buffer_
Definition: LogStream.h:443
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46