VERB4D
Classes | Public Types | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Logger Class Reference

Stores messages about statuses, warning, and errors when computing/solving the matrices. More...

#include <Logger.h>

Classes

class  Streamer
 Turns messages from the logger into streams. More...
 

Public Types

enum  DebugLevel { DEBUG_LEVEL_DISABLED = 0, DEBUG_LEVEL_MESSAGE = 1, DEBUG_LEVEL_WARNING = 2, DEBUG_LEVEL_ERROR = 3 }
 
enum  MessageType { MESSAGE_INFO = 1, MESSAGE_WARNING = 2, MESSAGE_ERROR = 3 }
 

Static Public Member Functions

static void createInstance ()
 creates logger that will write to log.txt
 
static void deleteInstance ()
 deletes instance of logger and closes log file ('log.txt')
 
static void setDebugLevel (DebugLevel level)
 Can set the Debug Level.
 

Static Public Attributes

static Streamer message
 
static Streamer warning
 
static Streamer error
 

Protected Member Functions

 Logger ()
 defualt constructor
 
 Logger (const Logger &thisobject)
 copy constructor
 
Loggeroperator= (const Logger &)
 overloaded equal for copy constructor
 
 ~Logger ()
 default destructor
 
void writeIDEDebugString (const std::string &message, MessageType type)
 stores message into logger, including message type
 

Detailed Description

Stores messages about statuses, warning, and errors when computing/solving the matrices.

Member Enumeration Documentation

Enum for the Debug Level that the logger is at

Enumerator
DEBUG_LEVEL_DISABLED 

Disabled = 0

DEBUG_LEVEL_MESSAGE 

Message = 1

DEBUG_LEVEL_WARNING 

Warning = 2

DEBUG_LEVEL_ERROR 

Error = 3

Enum for the type of Message being recorded

Enumerator
MESSAGE_INFO 

Info = 1

MESSAGE_WARNING 

Warning = 2

MESSAGE_ERROR 

Error = 3


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