#include <source/ariba/utility/transport/tcpip/protlib/logfile.h>
Public Member Functions | |
logfile (const char *filename="", bool usecolors=true, bool quietstart=false) | |
~logfile () | |
bool | set_dest (const char *filename, bool quiet=false) |
void | set_filter (logclass_t logclass, uint8 severitylevel) |
bool | should_log (logclass_t logclass, loglevel_t severitylevel) |
ostream & | logstart (logclass_t logclass, loglevel_t severity_level, const string &modname, const char *file="", const char *func="", int line=0) |
void | coloron () |
void | coloroff () |
void | logend () |
Private Member Functions | |
const char * | timenow () |
Private Attributes | |
ostream * | logstream |
pthread_mutex_t | logmutex |
unsigned char | logfilter [LOG_TYPES] |
bool | usecolors |
bool | quiet_start |
Definition at line 177 of file logfile.h.
void protlib::log::logfile::coloroff | ( | ) | [inline] |
Definition at line 206 of file logfile.h.
References protlib::log::color, protlib::log::num_colors, and usecolors.
void protlib::log::logfile::coloron | ( | ) | [inline] |
Definition at line 205 of file logfile.h.
References protlib::log::ANSIcolorcode, protlib::log::color, protlib::log::num_colors, and usecolors.
ostream & protlib::log::logfile::logstart | ( | logclass_t | logclass, | |
loglevel_t | severity_level, | |||
const string & | modname, | |||
const char * | file = "" , |
|||
const char * | func = "" , |
|||
int | line = 0 | |||
) |
Definition at line 155 of file logfile.cpp.
References protlib::log::bold_off, protlib::log::bold_on, protlib::log::color, protlib::log::ERROR_LOG, protlib::log::logclass_str, logmutex, logstream, protlib::log::magenta, protlib::log::off, protlib::log::red, timenow(), and protlib::log::WARNING_LOG.
bool protlib::log::logfile::set_dest | ( | const char * | filename, | |
bool | quiet = false | |||
) |
set logging destination to new filename
Definition at line 114 of file logfile.cpp.
unsigned char protlib::log::logfile::logfilter[LOG_TYPES] [private] |
pthread_mutex_t protlib::log::logfile::logmutex [private] |
Definition at line 181 of file logfile.h.
Referenced by logend(), logfile(), logstart(), set_dest(), and ~logfile().
ostream* protlib::log::logfile::logstream [private] |
Definition at line 180 of file logfile.h.
Referenced by logend(), logfile(), logstart(), set_dest(), and ~logfile().
bool protlib::log::logfile::quiet_start [private] |
bool protlib::log::logfile::usecolors [private] |