Public Member Functions | |
virtual | ~UFileLogger () |
Protected Member Functions | |
UFileLogger (const std::string &fileName, bool append) | |
Private Member Functions | |
virtual void | _write (const char *msg, va_list arg) |
virtual void | _writeStr (const char *msg) |
Private Attributes | |
std::string | bufferedMsgs_ |
std::string | fileName_ |
the file name | |
FILE * | fout_ |
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.
Definition at line 105 of file ULogger.cpp.
virtual UFileLogger::~UFileLogger | ( | ) | [inline, virtual] |
Definition at line 108 of file ULogger.cpp.
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. |
Definition at line 131 of file ULogger.cpp.
virtual void UFileLogger::_write | ( | const char * | msg, |
va_list | arg | ||
) | [inline, private, virtual] |
Reimplemented from ULogger.
Definition at line 154 of file ULogger.cpp.
virtual void UFileLogger::_writeStr | ( | const char * | msg | ) | [inline, private, virtual] |
Reimplemented from ULogger.
Definition at line 161 of file ULogger.cpp.
friend class ULogger [friend] |
Only the Logger can create inherited loggers according to the Abstract factory patterns.
Definition at line 122 of file ULogger.cpp.
std::string UFileLogger::bufferedMsgs_ [private] |
Reimplemented from ULogger.
Definition at line 172 of file ULogger.cpp.
std::string UFileLogger::fileName_ [private] |
the file name
Definition at line 170 of file ULogger.cpp.
FILE* UFileLogger::fout_ [private] |
Definition at line 171 of file ULogger.cpp.