Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Logger.cpp File Reference

#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <sstream>
#include <time.h>
#include "Logger.h"
#include "Portable.h"
#include "DHCPConst.h"

Namespaces

namespace  logger

Functions

ostream & endl (ostream &strum)
ostream & logCommon (int x)
ostream & logCont ()
ostream & logEmerg ()
ostream & logAlert ()
ostream & logCrit ()
ostream & logError ()
ostream & logWarning ()
ostream & logNotice ()
ostream & logInfo ()
ostream & logDebug ()
void Initialize (char *file)
void Terminate ()
void EchoOn ()
void EchoOff ()
void setLogLevel (int x)
void setLogName (string x)
string getLogName ()
int getLogLevel ()
void setLogMode (string x)
std::string StateToString (EState state)
std::string StatusCodeToString (int status)

Variables

string logname = "Init"
int logLevel = 8
Elogmode logmode = SHORT
ofstream logFile
bool logFileMode = false
bool echo = true
int curLogEntry = 8
ostringstream buffer

Function Documentation

void logger::EchoOff (   ) 
 

void logger::EchoOn (   ) 
 

ostream & logger::endl (  ostream &  strum  ) 
 

int logger::getLogLevel (   ) 
 

string logger::getLogName (   ) 
 

void logger::Initialize (  char *  file  ) 
 

ostream & logger::logAlert (   ) 
 

ostream& logCommon (  int  x  ) 
 

ostream & logger::logCont (   ) 
 

ostream & logger::logCrit (   ) 
 

ostream & logger::logDebug (   ) 
 

ostream & logger::logEmerg (   ) 
 

ostream & logger::logError (   ) 
 

ostream & logger::logInfo (   ) 
 

ostream & logger::logNotice (   ) 
 

ostream & logger::logWarning (   ) 
 

void logger::setLogLevel (  int  x  ) 
 

void logger::setLogMode (  string  x  ) 
 

void logger::setLogName (  string  x  ) 
 

std::string StateToString (  EState  state  ) 
 

std::string StatusCodeToString (  int  status  ) 
 

void logger::Terminate (   ) 
 


Variable Documentation

ostringstream logger::buffer
 

int logger::curLogEntry = 8
 

bool logger::echo = true
 

ofstream logger::logFile
 

bool logger::logFileMode = false
 

int logger::logLevel = 8
 

Elogmode logger::logmode = SHORT
 

string logger::logname = "Init"
 


Generated on Sun Aug 7 22:47:18 2005 for Dibbler - a portable DHCPv6 by  doxygen 1.3.9.1