Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CLoggerFile Class Reference

Logger registering messages in a file. More...

`#include <KeosLogger.h>`

Inheritance diagram for Keos::CLoggerFile:

List of all members.

## Public Member Functions

| CLoggerFile (const String &strFilename="Output.log")
| Default constructor.

## Private Member Functions

| ~CLoggerFile ()
| Destructor.
virtual void | Write (const String &strMessage)
| Write a message.

## Private Attributes

std::ofstream | m_File
| Log file.

## Detailed Description

Logger registering messages in a file.

Definition at line 90 of file KeosLogger.h.

## Constructor & Destructor Documentation

Keos::CLoggerFile::CLoggerFile | ( | const String & | strFilename = `"Output.log"` | ) |

| Default constructor.

Parameters:

  | strFilename | Log file name.

Definition at line 101 of file KeosLogger.cpp.

References Keos::ILogger::CurrentDate(), Keos::ILogger::CurrentTime(), KEOS_VERSION_MAJOR, KEOS_VERSION_MINOR, KEOS_VERSION_PATCH, LOADINGFAILED_EXCEPT, and m_File.

Keos::CLoggerFile::~CLoggerFile | ( |  | ) | `[private]`

| Destructor. Definition at line 116 of file KeosLogger.cpp. References Keos::ILogger::CurrentTime(), and m_File.

## Member Function Documentation

void Keos::CLoggerFile::Write | ( | const String & | strMessage | ) | `[private, virtual]`

| Write a message.

Parameters:

  | strMessage | Message writes.

Implements Keos::ILogger.

Definition at line 126 of file KeosLogger.cpp.

References Assert, Keos::ILogger::CurrentTime(), and m_File.

## Member Data Documentation

std::ofstream Keos::CLoggerFile::m_File`[private]`

| Log file. Definition at line 112 of file KeosLogger.h. Referenced by CLoggerFile(), Write(), and ~CLoggerFile().

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

- KeosEngine/KeosLogger.h
- KeosEngine/KeosLogger.cpp