Rise
The Vieneo Province
Logger Class Reference

#include <Logger.h>

Collaboration diagram for Logger:
[legend]

Public Types

enum  Level {
  None = -1, Info, Warn, Debug,
  Error, Fatal
}
 

Public Member Functions

void Log (const char *msg, Level level=Info, int errorCode=0)
 
void AddToCallStack (const char *msg)
 
void SetNetworkingPointer (Networking *prmNetworking)
 
 Logger ()
 
 ~Logger ()
 

Public Attributes

std::string lastError = ""
 
Level lastLevel = None
 
int lastErrorCode = 0
 
char callStack [5][80] = {}
 

Private Member Functions

void LogStackTrace ()
 

Static Private Member Functions

static void RemoveOldFiles (const wchar_t *searchkey, int maxDays)
 

Private Attributes

int logfile = -1
 
Networkingnetworking = nullptr
 
char fileName [99] = { 0 }
 

Detailed Description

Definition at line 9 of file Logger.h.

Member Enumeration Documentation

◆ Level

Enumerator
None 
Info 
Warn 
Debug 
Error 
Fatal 

Definition at line 19 of file Logger.h.

Constructor & Destructor Documentation

◆ Logger()

Logger::Logger ( )

Definition at line 134 of file Logger.cpp.

Here is the call graph for this function:

◆ ~Logger()

Logger::~Logger ( )

Definition at line 156 of file Logger.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ AddToCallStack()

void Logger::AddToCallStack ( const char *  msg)

Definition at line 86 of file Logger.cpp.

◆ Log()

void Logger::Log ( const char *  msg,
Level  level = Info,
int  errorCode = 0 
)

Definition at line 11 of file Logger.cpp.

Here is the call graph for this function:

◆ LogStackTrace()

void Logger::LogStackTrace ( )
private

Definition at line 95 of file Logger.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveOldFiles()

void Logger::RemoveOldFiles ( const wchar_t *  searchkey,
int  maxDays 
)
staticprivate

Definition at line 110 of file Logger.cpp.

Here is the caller graph for this function:

◆ SetNetworkingPointer()

void Logger::SetNetworkingPointer ( Networking prmNetworking)

Definition at line 105 of file Logger.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ callStack

char Logger::callStack[5][80] = {}

Definition at line 36 of file Logger.h.

◆ fileName

char Logger::fileName[99] = { 0 }
private

Definition at line 13 of file Logger.h.

◆ lastError

std::string Logger::lastError = ""

Definition at line 33 of file Logger.h.

◆ lastErrorCode

int Logger::lastErrorCode = 0

Definition at line 35 of file Logger.h.

◆ lastLevel

Level Logger::lastLevel = None

Definition at line 34 of file Logger.h.

◆ logfile

int Logger::logfile = -1
private

Definition at line 11 of file Logger.h.

◆ networking

Networking* Logger::networking = nullptr
private

Definition at line 12 of file Logger.h.


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