libnavajo
web server for static and dynamic pages developement in C++
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
LogRecorder Class Reference

#include <LogRecorder.hh>

Collaboration diagram for LogRecorder:
Collaboration graph
[legend]

Public Member Functions

void setDebugMode (bool d=true)
 
void addLogOutput (LogOutput *)
 
void removeLogOutputs ()
 
void append (const NvjLogSeverity &l, const std::string &msg, const std::string &details="")
 
void appendUniq (const NvjLogSeverity &l, const std::string &msg, const std::string &details="")
 
void initUniq ()
 

Static Public Member Functions

static LogRecordergetInstance ()
 
static void freeInstance ()
 

Protected Member Functions

 LogRecorder ()
 
 ~LogRecorder ()
 
std::string getDateStr ()
 

Protected Attributes

std::list< LogOutput * > logOutputsList_
 

Static Protected Attributes

static LogRecordertheLogRecorder = NULL
 

Detailed Description

LogRecorder - generic class to handle log trace

Constructor & Destructor Documentation

LogRecorder::LogRecorder ( )
protected

LogRecorder - base constructor

LogRecorder::~LogRecorder ( )
protected

~LogRecorder - destructor

Member Function Documentation

void LogRecorder::addLogOutput ( LogOutput output)

addLogOutput - ajout d'une sortie LogOutput oł imprimer les logs

void LogRecorder::append ( const NvjLogSeverity &  l,
const std::string &  m,
const std::string &  details = "" 
)

append - append an entry to the LogRecorder

Parameters
l- type of entry
m- message
static void LogRecorder::freeInstance ( )
inlinestatic

freeInstance - free the static logRecorder object

std::string LogRecorder::getDateStr ( )
protected

getDateStr - return a string with the formatted date

Returns
string - formatted date
static LogRecorder* LogRecorder::getInstance ( )
inlinestatic

getInstance - return/create a static logRecorder object

Returns
theLogRecorder - static log recorder
void LogRecorder::removeLogOutputs ( )

removeLogOutputs - supprime toutes les sorties LogOutput

Member Data Documentation

LogRecorder * LogRecorder::theLogRecorder = NULL
staticprotected

LogRecorder - static and unique log recorder object


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