A logger that outputs messages to a file. More...
#include <Console.hh>
Inherits ostream.
| Classes | |
| class | Buffer | 
| String buffer for the file logger.  More... | |
| Public Member Functions | |
| FileLogger (const std::string &_filename="") | |
| Constructor.  More... | |
| virtual | ~FileLogger () | 
| Destructor.  More... | |
| std::string | GetLogDirectory () const | 
| Get the full path of the directory where all the log files are stored.  More... | |
| void | Init (const std::string &_prefix, const std::string &_filename) | 
| Initialize the file logger.  More... | |
| virtual FileLogger & | operator() () | 
| Output a filename and line number, then return a reference to the logger.  More... | |
| virtual FileLogger & | operator() (const std::string &_file, int _line) | 
| Output a filename and line number, then return a reference to the logger.  More... | |
A logger that outputs messages to a file.
| FileLogger | ( | const std::string & | _filename = "" | ) | 
Constructor.
| [in] | _filename | Filename to write into. If empty, FileLogger::Init must be called separately. | 
| 
 | virtual | 
Destructor.
| std::string GetLogDirectory | ( | ) | const | 
Get the full path of the directory where all the log files are stored.
| void Init | ( | const std::string & | _prefix, | 
| const std::string & | _filename | ||
| ) | 
Initialize the file logger.
| [in] | _prefix | Prefix added to the directory where the log file will be created. | 
| [in] | _filename | Name and path of the log file to write output into. | 
| 
 | virtual | 
Output a filename and line number, then return a reference to the logger.
| 
 | virtual | 
Output a filename and line number, then return a reference to the logger.
| [in] | _file | Filename to output. | 
| [in] | _line | Line number in the _file. |