Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Logger.h File Reference
#include <iostream>
#include <string>
#include "DHCPConst.h"
#include <stdint.h>
+ Include dependency graph for Logger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  logger

Macros

#define Log(X)   logger :: log##X ()
#define LogEnd   logger :: endl
#define LOGMODE_DEFAULT   LOGMODE_FULL

Enumerations

enum  logger::Elogmode {
  logger::LOGMODE_FULL, logger::LOGMODE_SHORT, logger::LOGMODE_PRECISE, logger::LOGMODE_SYSLOG,
  logger::LOGMODE_EVENTLOG
}

Functions

void logger::EchoOff ()
void logger::EchoOn ()
std::ostream & logger::endl (std::ostream &strum)
int logger::getLogLevel ()
string logger::getLogName ()
void logger::Initialize (const char *file)
ostream & logger::logAlert ()
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)
void PrintHex (const std::string &message, const uint8_t *buf, unsigned len)
void logger::setColors (bool colorLogs)
void logger::setLogLevel (int x)
void logger::setLogMode (const std::string x)
void logger::setLogName (const std::string x)
std::string StateToString (EState state)
std::string StatusCodeToString (int status)
void logger::Terminate ()

Macro Definition Documentation

#define Log (   X)    logger :: log##X ()
#define LogEnd   logger :: endl
#define LOGMODE_DEFAULT   LOGMODE_FULL

Function Documentation

std::string MsgTypeToString ( int  msgType)
void PrintHex ( const std::string &  message,
const uint8_t *  buf,
unsigned  len 
)
std::string StateToString ( EState  state)
std::string StatusCodeToString ( int  status)