UtiLite
0.3.1
A lite utilities library
|
Inherits ULogger.
Protected Member Functions | |
UFileLogger (const std::string &fileName, bool append) | |
Private Attributes | |
std::string | fileName_ |
the file name | |
Friends | |
class | ULogger |
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.
UFileLogger::UFileLogger | ( | const std::string & | fileName, |
bool | append | ||
) | [inline, protected] |
The UFileLogger constructor.
fileName | the file name |
append | if true append logs in the file, ortherwise it overrides the file. |
friend class ULogger [friend] |
Only the Logger can create inherited loggers according to the Abstract factory patterns.