protlib::log::logfile Class Reference
[Logging]

#include <source/ariba/utility/transport/tcpip/protlib/logfile.h>

Collaboration diagram for protlib::log::logfile:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 177 of file logfile.h.


Member Function Documentation

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]

ostream & protlib::log::logfile::logstart ( logclass_t  logclass,
loglevel_t  severity_level,
const string &  modname,
const char *  file = "",
const char *  func = "",
int  line = 0 
)

bool protlib::log::logfile::set_dest ( const char *  filename,
bool  quiet = false 
)

set logging destination to new filename

Returns:
true if logfile could be opened for given name

Definition at line 114 of file logfile.cpp.

References logmutex, and logstream.


Member Data Documentation

unsigned char protlib::log::logfile::logfilter[LOG_TYPES] [private]

Definition at line 183 of file logfile.h.

Referenced by logfile(), and set_filter().

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().

Definition at line 180 of file logfile.h.

Referenced by logend(), logfile(), logstart(), set_dest(), and ~logfile().

Definition at line 186 of file logfile.h.

Referenced by logfile(), and ~logfile().

Definition at line 185 of file logfile.h.

Referenced by coloroff(), and coloron().


The documentation for this class was generated from the following files:

Generated on Fri Aug 14 23:40:05 2009 for Ariba by  doxygen 1.5.8