35 #ifndef OPENMS_CONCEPT_LOGSTREAM_H    36 #define OPENMS_CONCEPT_LOGSTREAM_H   104       public std::streambuf
   124       explicit LogStreamBuf(std::string log_level = UNKNOWN_LOG_LEVEL);
   152       virtual int overflow(
int c = -1);
   163       void setLevel(std::string level);
   169       std::string getLevel();
   204       void distribute_(std::string outstring);
   207       std::string expandPrefix_(
const std::string & prefix, time_t time) 
const;
   238       bool isInCache_(std::string 
const & line);
   248       std::string addToCache_(std::string 
const & line);
   251       Size getNextLogCounter_();
   268       virtual void logNotify();
   350       void setLevel(std::string level);
   356       std::string getLevel();
   376       void insert(std::ostream & s);
   388       void remove(std::ostream & s);
   391       void insertNotification(std::ostream & s,
   414       void setPrefix(
const std::ostream & s, 
const std::string & prefix);
   418       void setPrefix(
const std::string & prefix);
   427       StreamIterator findStream_(
const std::ostream & stream);
   428       bool hasStream_(std::ostream & stream);
   443 #define LOG_FATAL_ERROR \   444   Log_fatal << __FILE__ << "(" << __LINE__ << "): "   460   Log_debug << __FILE__ << "(" << __LINE__ << "): "   462   OPENMS_DLLAPI 
extern Logger::LogStream 
Log_fatal; 
   463   OPENMS_DLLAPI 
extern Logger::LogStream 
Log_error; 
   464   OPENMS_DLLAPI 
extern Logger::LogStream 
Log_warn;  
   465   OPENMS_DLLAPI 
extern Logger::LogStream 
Log_info;  
   466   OPENMS_DLLAPI 
extern Logger::LogStream 
Log_debug; 
   470 #endif // OPENMS_CONCEPT_LOGSTREAM_H std::string level_
Definition: LogStream.h:210
 
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. 
 
Logger::LogStream Log_warn
Global static instance of a LogStream to capture messages classified as warnings. By default it is bo...
 
static const std::string UNKNOWN_LOG_LEVEL
Definition: LogStream.h:114
 
Definition: LogStream.h:257
 
LogStream * registered_at_
Definition: LogStream.h:279
 
Main OpenMS namespace. 
Definition: FeatureDeconvolution.h:47
 
StreamStruct()
Definition: LogStream.h:183
 
std::list< StreamStruct > stream_list_
Definition: LogStream.h:211
 
bool delete_buffer_
Definition: LogStream.h:435
 
Log Stream Class. 
Definition: LogStream.h:303
 
Logger::LogStream Log_info
Global static instance of a LogStream to capture messages classified as information. By default it is bound to cout. 
 
std::ostream * stream
Definition: LogStream.h:179
 
std::map< Size, std::string > log_time_cache_
Cache of the occurrence sequence of the last two log messages. 
Definition: LogStream.h:235
 
std::string prefix
Definition: LogStream.h:180
 
Logger::LogStream Log_error
Global static instance of a LogStream to capture messages classified as errors. By default it is boun...
 
std::stringstream stream_
Definition: LogStream.h:277
 
Size log_cache_counter_
Definition: LogStream.h:230
 
~StreamStruct()
Delete the notification target. 
Definition: LogStream.h:189
 
Holds a stream that is connected to the LogStream. It also includes the minimum and maximum level at ...
Definition: LogStream.h:177
 
std::string incomplete_line_
Definition: LogStream.h:212
 
std::map< std::string, LogCacheStruct > log_cache_
Cache of the last two log messages. 
Definition: LogStream.h:233
 
size_t Size
Size type e.g. used as variable which can hold result of size() 
Definition: Types.h:128
 
LogStreamNotifier * target
Definition: LogStream.h:181
 
Logger::LogStream Log_fatal
Global static instance of a LogStream to capture messages classified as fatal errors. By default it is bound to cerr. 
 
char * pbuf_
Definition: LogStream.h:209
 
static const time_t MAX_TIME
Definition: LogStream.h:113
 
std::list< LogStreamBuf::StreamStruct >::iterator StreamIterator
Definition: LogStream.h:425
 
int counter
Definition: LogStream.h:223
 
Size timestamp
Definition: LogStream.h:222
 
Stream buffer used by LogStream. 
Definition: LogStream.h:103
 
Holds a counter of occurrences and an index for the occurrence sequence of the corresponding log mess...
Definition: LogStream.h:220