#include <logger.h>
|
| Logger (const std::string filename) |
|
void | info (const std::string msg, bool print=false) |
|
void | log (const std::string type, const std::string msg, bool print=false) |
|
| ~Logger () |
|
< Class for logger
Definition at line 8 of file logger.h.
Logger::Logger |
( |
const std::string |
filename | ) |
|
Constructor with filename of log file as parameter
Definition at line 8 of file logger.cpp.
Destructor which closes file on invokation
Definition at line 44 of file logger.cpp.
void Logger::info |
( |
const std::string |
msg, |
|
|
bool |
print = false |
|
) |
| |
Method to log single line statements
print = true prints it to stdout also
Definition at line 18 of file logger.cpp.
void Logger::log |
( |
const std::string |
type, |
|
|
const std::string |
msg, |
|
|
bool |
print = false |
|
) |
| |
Method to log with type and detailed message
print = true prints it to stdout also
Definition at line 27 of file logger.cpp.
std::fstream Logger::file |
|
private |
File stream to the log file
Definition at line 13 of file logger.h.
Helper variable for time manipulation
Definition at line 11 of file logger.h.
std::string Logger::tmpstr |
|
private |
Helper variable for string manipulation
Definition at line 12 of file logger.h.
The documentation for this class was generated from the following files: