fluidvis
Public Member Functions | List of all members
sx::FileLogger Class Reference

#include <Log4SX.h>

Inheritance diagram for sx::FileLogger:
sx::Logger

Public Member Functions

EXL FileLogger (string filename)
 
EXL ~FileLogger ()
 
EXL bool hasErrors () const
 
EXL void close ()
 
EXL Loggeroperator<< (const Level level)
 
EXL Loggeroperator<< (const LogMarkup m)
 
EXL Loggeroperator<< (const Annotation a)
 
EXL Loggeroperator<< (char value)
 
EXL Loggeroperator<< (unsigned char value)
 
EXL Loggeroperator<< (short value)
 
EXL Loggeroperator<< (unsigned short value)
 
EXL Loggeroperator<< (int value)
 
EXL Loggeroperator<< (unsigned int value)
 
EXL Loggeroperator<< (long value)
 
EXL Loggeroperator<< (unsigned long value)
 
EXL Loggeroperator<< (float value)
 
EXL Loggeroperator<< (double value)
 
EXL Loggeroperator<< (string value)
 
- Public Member Functions inherited from sx::Logger
virtual EXL ~Logger ()
 
EXL void setMinLevel (LogLevel level)
 
EXL LogLevel getMinLevel () const
 
EXL LogLevel getLevel () const
 

Additional Inherited Members

- Static Public Member Functions inherited from sx::Logger
static EXL string newLine ()
 
static EXL void addLogger (string ID, Logger *logger)
 
static EXL void setDefaultLogger (string ID)
 
static EXL Loggerget ()
 
static EXL void deleteLogger (string ID)
 
- Protected Member Functions inherited from sx::Logger
EXL Logger ()
 
bool takeMessage () const
 
- Protected Attributes inherited from sx::Logger
LogLevel minLevel
 
LogLevel level
 

Detailed Description

A Logger, which collects the messages, and stores the log in a file. In the case of an IO error of the logger, messages are simply ignored.

See also
sx::Logger

Constructor & Destructor Documentation

EXL sx::FileLogger::FileLogger ( string  filename)

Default constructor. Opens file at location filename for writing to it.

EXL sx::FileLogger::~FileLogger ( )

deconstructor

Member Function Documentation

EXL void sx::FileLogger::close ( )

Closes file. Messages passed to the logger after execution of close are ignored.

EXL bool sx::FileLogger::hasErrors ( ) const

If file caused errors, true is returned.

EXL Logger& sx::FileLogger::operator<< ( const Level  level)
virtual
See also
sx::Logger::operator <<(const Level)

Reimplemented from sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( const LogMarkup  m)
virtual

The LogMarkup message is posted in the file followed by newline, and enclosed by the charactersequence —.

See also
sx::Logger::operator << (const LogMarkup m)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( const Annotation  a)
virtual

The LogMarkup message is posted in the file starting with newline.

See also
sx::Logger::operator << (const Annotation)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( char  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (char value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( unsigned char  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (unsigned char value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( short  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (short value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( unsigned short  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (unsigned short value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( int  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (int value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( unsigned int  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (unsigned int value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( long  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (long value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( unsigned long  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (unsigned long value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( float  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (float value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( double  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (double value)

Implements sx::Logger.

EXL Logger& sx::FileLogger::operator<< ( string  value)
virtual

Writes value to file.

See also
sx::Logger::operator << (string value)

Implements sx::Logger.


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