Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | Friends
clearpath::Logger Class Reference

#include <Logger.h>

List of all members.

Public Types

enum  logLevels {
  ERROR_LEV, EXCEPTION, WARNING, INFO,
  DETAIL
}

Public Member Functions

std::ostream & entry (enum logLevels level, const char *file=0, int line=-1)
void hookFatalSignals ()
void setEnabled (bool enabled)
void setLevel (enum logLevels newLevel)
void setStream (std::ostream *stream)

Static Public Member Functions

static Loggerinstance ()

Static Public Attributes

static const char * levelNames [] = {"ERROR", "EXCEPTION", "WARNING", "INFO", "DETAIL"}

Private Member Functions

void close ()
 Logger ()
 ~Logger ()

Private Attributes

bool enabled
int level
std::ofstream * nullStream
std::ostream * stream

Friends

void loggerTermHandler (int signal)

Detailed Description

Definition at line 55 of file Logger.h.


Member Enumeration Documentation

Enumerator:
ERROR_LEV 
EXCEPTION 
WARNING 
INFO 
DETAIL 

Definition at line 66 of file Logger.h.


Constructor & Destructor Documentation

Definition at line 82 of file Logger.cpp.

Definition at line 90 of file Logger.cpp.


Member Function Documentation

void clearpath::Logger::close ( ) [private]

Definition at line 95 of file Logger.cpp.

std::ostream & clearpath::Logger::entry ( enum logLevels  level,
const char *  file = 0,
int  line = -1 
)

Definition at line 105 of file Logger.cpp.

Definition at line 143 of file Logger.cpp.

Definition at line 76 of file Logger.cpp.

void clearpath::Logger::setEnabled ( bool  enabled)

Definition at line 127 of file Logger.cpp.

void clearpath::Logger::setLevel ( enum logLevels  newLevel)

Definition at line 132 of file Logger.cpp.

void clearpath::Logger::setStream ( std::ostream *  stream)

Definition at line 137 of file Logger.cpp.


Friends And Related Function Documentation

void loggerTermHandler ( int  signal) [friend]

Member Data Documentation

Definition at line 58 of file Logger.h.

int clearpath::Logger::level [private]

Definition at line 59 of file Logger.h.

const char * clearpath::Logger::levelNames = {"ERROR", "EXCEPTION", "WARNING", "INFO", "DETAIL"} [static]

Definition at line 74 of file Logger.h.

std::ofstream* clearpath::Logger::nullStream [private]

Definition at line 63 of file Logger.h.

std::ostream* clearpath::Logger::stream [private]

Definition at line 61 of file Logger.h.


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


husky_base
Author(s): Mike Purvis , Paul Bovbel
autogenerated on Sat Jun 8 2019 18:26:01