Logo Search packages:      
Sourcecode: passage version File versions  Download package

FileLog Class Reference

#include <FileLog.h>

Inheritance diagram for FileLog:

PrintLog Log

List of all members.

Detailed Description

A file-based implementation of the Log interface.

Jason Rohrer

Definition at line 31 of file FileLog.h.

Public Member Functions

 FileLog (char *inFileName, unsigned long inSecondsBetweenBackups=3600)
virtual int getLoggingLevel ()
virtual void logString (char *inString, int inLevel)
virtual void logString (char *inLoggerName, char *inString, int inLevel)
void makeBackup ()
virtual void setLoggingLevel (int inLevel)

Static Public Attributes

static const int CRITICAL_ERROR_LEVEL = 1
static const int DEACTIVATE_LEVEL = 0
static const int DETAIL_LEVEL = 5
static const int ERROR_LEVEL = 2
static const int INFO_LEVEL = 4
static const int TRACE_LEVEL = 6
static const int WARNING_LEVEL = 3

Protected Member Functions

char * generateLogMessage (char *inLoggerName, char *inString, int inLevel)

Protected Attributes

FILE * mLogFile
char * mLogFileName
int mLoggingLevel
unsigned long mSecondsBetweenBackups
unsigned long mTimeOfLastBackup

Static Protected Attributes

static const char * mDefaultLogFileName = "default.log"
static const char * mDefaultLoggerName = "general"

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

Generated by  Doxygen 1.6.0   Back to index