Public Member Functions |
void | set_log_to_console (bool consolelog) |
| If consolelog is true, subsequent logger output will be written to stderr.
|
std::string | get_log_file (void) |
| Returns the current logger file.
|
bool | get_log_to_console () |
| Returns true if output is being written to stderr.
|
int | get_log_level () |
| Returns the current logger level.
|
template<typename T > |
file_logger & | operator<< (T a) |
file_logger & | operator<< (const char *a) |
file_logger & | operator<< (std::ostream &(*f)(std::ostream &)) |
void | set_log_level (int new_log_level) |
| file_logger () |
bool | set_log_file (std::string file) |
void | textcolor (FILE *handle, int attr, int fg) |
void | reset_color (FILE *handle) |
void | _log (int lineloglevel, const char *file, const char *function, int line, const char *fmt, va_list ap) |
void | _logbuf (int lineloglevel, const char *file, const char *function, int line, const char *buf, int len) |
void | _lograw (int lineloglevel, const char *buf, int len) |
file_logger & | start_stream (int lineloglevel, const char *file, const char *function, int line) |
void | stream_flush () |
logging class. This writes to a file, and/or the system console.