UtiLite  0.3.1
A lite utilities library
Protected Member Functions | Private Attributes | Friends
UFileLogger Class Reference

Inherits ULogger.

List of all members.

Protected Member Functions

 UFileLogger (const std::string &fileName, bool append)

Private Attributes

std::string fileName_
 the file name

Friends

class ULogger

Detailed Description

This class is used to write logs in a file. This class cannot be directly used, use ULogger::setType() to file type to print in a file and use macro UDEBUG(), UINFO()... to print messages.

See also:
ULogger

Constructor & Destructor Documentation

UFileLogger::UFileLogger ( const std::string &  fileName,
bool  append 
) [inline, protected]

The UFileLogger constructor.

Parameters:
fileNamethe file name
appendif true append logs in the file, ortherwise it overrides the file.

Friends And Related Function Documentation

friend class ULogger [friend]

Only the Logger can create inherited loggers according to the Abstract factory patterns.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Friends Defines