20 static std::filebuf devnull;
21 static std::filebuf logfile;
22 static std::ostream emerg;
23 static std::ostream alert;
24 static std::ostream crit;
25 static std::ostream error;
26 static std::ostream warn;
27 static std::ostream notice;
28 static std::ostream info;
29 static std::ostream debug;
30 static std::ostream debug2;
31 static std::ostream debug3;
32 static std::ostream trace;
33 static std::streamsize width;
42 static const unsigned int EMERG = 0;
43 static const unsigned int ALERT = 1;
44 static const unsigned int CRIT = 2;
45 static const unsigned int ERROR = 3;
46 static const unsigned int WARN = 4;
47 static const unsigned int NOTICE = 5;
48 static const unsigned int INFO = 6;
49 static const unsigned int DBG = 7;
50 static const unsigned int DBG2 = 8;
51 static const unsigned int DBG3 = 9;
52 static const unsigned int TRACE = 10;
72 unsigned int debug_level);
78 static unsigned int width;
79 unsigned int my_width;
81 indent(
unsigned int my_width = 0) :
83 indent::width += my_width;
86 indent::width = (indent::width >= my_width) ? (indent::width - my_width) : 0;
88 static void inc(
unsigned int width) {
89 indent::width += width;
91 static void dec(
unsigned int width) {
92 indent::width = (indent::width >= width) ? (indent::width - width) : 0;
98 operator<< (std::ostream& os,
indent const& i) {
100 os << std::setw(indent::width) <<
" " << std::setw(0);
static void init()
Definition: logging.cc:35
static void set_debug_level(unsigned int debug_level)
Definition: logging.cc:54
static void close()
Definition: logging.cc:44