Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXLogger Class Reference

A log file manager to allow applications to log entries to a file. More...

#include <FXLogger.h>

Inheritance diagram for FXEX::FXLogger::

FXFileStream List of all members.

Public Methods

 FXLogger (const FXString &file, const FXlong size=100000, const FXuint mode=0, const FXbool timestamp=TRUE)
void size (const FXlong size)
FXlong size ()
FXbool name (const FXString &file)
FXString name ()
FXbool isEnabled ()
void log (const FXchar *msg,...)
void log (const FXString &msg)
void status (const FXString &code, const FXString &msg)
void warning (const FXString &msg)
void error (const FXString &msg)
void debug (const FXString &msg)
void log (const FXException *e)
void log (const FXExtendedException *e)
virtual FXStreamoperator<< (const FXchar &v)
virtual FXStreamoperator<< (const FXuchar &v)
virtual ~FXLogger ()

Static Public Methods

FXLogger & instance ()

Detailed Description

A log file manager to allow applications to log entries to a file.

The good stuff:

The bad stuff:

Definition at line 64 of file FXLogger.h.


Constructor & Destructor Documentation

FXEX::FXLogger::FXLogger const FXString & file,
const FXlong size = 100000,
const FXuint mode = 0,
const FXbool timestamp = TRUE
 

Give me a log file.

virtual FXEX::FXLogger::~FXLogger [virtual]
 

done.


Member Function Documentation

FXLogger& FXEX::FXLogger::instance [static]
 

Use the current instance.

void FXEX::FXLogger::size const FXlong size [inline]
 

Set the size of the log file - check on next log entry.

Definition at line 73 of file FXLogger.h.

FXlong FXEX::FXLogger::size [inline]
 

Get the size of the log file.

Definition at line 76 of file FXLogger.h.

FXbool FXEX::FXLogger::name const FXString & file
 

Change the location of the log file - change is immediate.

FXString FXEX::FXLogger::name [inline]
 

get the current filename.

Definition at line 82 of file FXLogger.h.

FXbool FXEX::FXLogger::isEnabled [inline]
 

indicates whether the log file can/will be written to.

Definition at line 85 of file FXLogger.h.

void FXEX::FXLogger::log const FXchar * msg,
...
 

This is for logging output to a file It is automatically new-line terminated.

void FXEX::FXLogger::log const FXString & msg
 

void FXEX::FXLogger::status const FXString & code,
const FXString & msg
 

void FXEX::FXLogger::warning const FXString & msg
 

void FXEX::FXLogger::error const FXString & msg
 

void FXEX::FXLogger::debug const FXString & msg
 

void FXEX::FXLogger::log const FXException * e
 

void FXEX::FXLogger::log const FXExtendedException * e
 

virtual FXStream& FXEX::FXLogger::operator<< const FXchar & v [virtual]
 

Save to stream.

virtual FXStream& FXEX::FXLogger::operator<< const FXuchar & v [virtual]
 

load from stream.