NLS Engine  v0.1
The Next Logical Step in game engine design.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines
Classes | Namespaces | Defines | Enumerations
EventLogger.h File Reference

Simple event logger to output debug and other messages to file. More...

#include <queue>
#include <string>
#include <threading.h>
Include dependency graph for EventLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EventLogger

Namespaces

namespace  LOG_PRIORITY
 Namespaced enumerated type to specify the priority status of a logging message.

Defines

#define LOG(x, y)   ::EventLogger::GetEventLogger()->LogToDisk((x), (y), __FILE__, __LINE__, __FUNCTION__);
 Logging macro designed to make logged meesages much more meaningful by providing file, line number, etc.
#define LOG2(x, y)   {if (this->debug_output) {::EventLogger::GetEventLogger()->LogToDisk((x), (y), __FILE__, __LINE__, __FUNCTION__);}}
 Logging macro designed to make logged meesages much more meaningful by providing file, line number, etc. Differs from the above in that it uses a member variable to determine output.

Enumerations

enum  LOG_PRIORITY::TYPE {
  LOG_PRIORITY::INFO = 0, LOG_PRIORITY::FLOW = 1, LOG_PRIORITY::WARN = 2, LOG_PRIORITY::CONFIG = 3,
  LOG_PRIORITY::ERR = 4, LOG_PRIORITY::MISSRESS = 5, LOG_PRIORITY::RESTART = 6, LOG_PRIORITY::SYSERR = 7,
  LOG_PRIORITY::DEPRICATE = 8, ENUM_COUNT
}
 Enumerated type for logging. More...

Detailed Description

Simple event logger to output debug and other messages to file.

Author:
Adam Martin
Date:
2011-10-25

Definition in file EventLogger.h.


Define Documentation

#define LOG (   x,
 
)    ::EventLogger::GetEventLogger()->LogToDisk((x), (y), __FILE__, __LINE__, __FUNCTION__);

Logging macro designed to make logged meesages much more meaningful by providing file, line number, etc.

Definition at line 27 of file EventLogger.h.

#define LOG2 (   x,
 
)    {if (this->debug_output) {::EventLogger::GetEventLogger()->LogToDisk((x), (y), __FILE__, __LINE__, __FUNCTION__);}}

Logging macro designed to make logged meesages much more meaningful by providing file, line number, etc. Differs from the above in that it uses a member variable to determine output.

Definition at line 29 of file EventLogger.h.