Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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"
+ Include dependency graph for Logger.cpp:

Namespaces

namespace  logger

Functions

static void logger::changeLogMode (Elogmode newMode)
void logger::EchoOff ()
void logger::EchoOn ()
ostream & logger::endl (ostream &strum)
int logger::getLogLevel ()
string logger::getLogName ()
void logger::Initialize (const char *file)
ostream & logger::logAlert ()
ostream & logger::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 ()
std::string MsgTypeToString (int msgType)
static void logger::openLog ()
void logger::setColors (bool colorLogs)
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 ()

Variables

ostringstream logger::buffer
bool logger::color = false
int logger::curLogEntry = 8
bool logger::echo = true
ofstream logger::logFile
bool logger::logFileMode = false
string logger::logFileName
int logger::logLevel = 8
Elogmode logger::logmode = LOGMODE_FULL
string logger::logname = "Init"

Function Documentation

std::string MsgTypeToString ( int  msgType)
std::string StateToString ( EState  state)
std::string StatusCodeToString ( int  status)