Eris  1.4.0
Log.h
1 #ifndef ERIS_LOG_H
2 #define ERIS_LOG_H
3 
4 #include <sigc++/signal.h>
5 
6 #include <string>
7 
8 namespace Eris
9 {
10 
13 typedef enum {
14  LOG_ERROR = 0,
19 } LogLevel;
20 
22 const LogLevel DEFAULT_LOG = LOG_WARNING;
23 
27 extern sigc::signal<void, LogLevel, const std::string&> Logged;
28 
31 void setLogLevel(LogLevel lvl);
32 
33 LogLevel getLogLevel();
34 
35 }
36 
37 #include "LogStream.h"
38 
39 #endif
void setLogLevel(LogLevel lvl)
set the logging level for all sucessive messages : this can be called at any time, so it is reasonable to bracket suspect calls in setLogLevel calls if you choose
Definition: Log.cpp:25
something is amiss, but probably okay to continue
Definition: Log.h:15
serious failure indications
Definition: Log.h:14
lots of information, about every received operation, for example
Definition: Log.h:17
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
sigc::signal< void, LogLevel, const std::string & > Logged
Emitted with logging information; client may handle as it see fit.
Definition: Log.cpp:23
LogLevel
Logging level : setting a higher level will automaticaly pull in the lower levels (i...
Definition: Log.h:13
general information
Definition: Log.h:16
const LogLevel DEFAULT_LOG
the default logging level for a new connection
Definition: Log.h:22
excessive amounts of stuff
Definition: Log.h:18