- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# FUErrorLog Class Reference
[Utility Classes.]

An error log. More...

`#include <FUErrorLog.h>`

List of all members.

## Public Member Functions
| FUErrorLog (const fchar *logFilename, FUError::Level errorLevel)
| Constructor.
| ~FUErrorLog ()
| Destructor.
FULogFile * | GetLogFile ()
| Retrieves the log file handler.
void | QueryNewMessages (uint32 &debug, uint32 &warnings, uint32 &errors)
| Allows to determine if new messages have been generated since the last query.

## Detailed Description

An error log.

This class monitors the FUError sinks and outputs the wanted messages into a text file.

See also:
  FUError

## Constructor & Destructor Documentation

FUErrorLog::FUErrorLog | ( | const fchar * | logFilename,
|  | FUError::Level | errorLevel
| ) |

  | Constructor. See also: FUError::Level Parameters:
  | logFilename | The filename in which to output the error messages that cover at least the given errorLevel.
  | errorLevel | The minimum required error level. Any error messages lower that this level will be discarded.

FUErrorLog::~FUErrorLog | ( |  | ) |

| Destructor. Closes the log file.

## Member Function Documentation

FULogFile* FUErrorLog::GetLogFile | ( |  | ) | `[inline]`

| Retrieves the log file handler. This can be useful when writing out long, custom messages. Returns: The log file handler.

void FUErrorLog::QueryNewMessages | ( | uint32 & | debug,
|  | uint32 & | warnings,
|  | uint32 & | errors
| ) |

  | Allows to determine if new messages have been generated since the last query. Parameters:
  | debug | The number of new debug-level messages.
  | warnings | The number of new warning-level messages.
  | errors | The number of new error-level messages.

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

- FUtils/FUErrorLog.h