Auryn simulator
v0.8.1-206-gb56e451
Plastic Spiking Neural Network Simulator
|
A generic logger class that logs to screen and a log-file. More...
#include <Logger.h>
Public Member Functions | |
Logger (std::string filename, int rank, LogMessageType console=PROGRESS, LogMessageType file=NOTIFICATION) | |
virtual | ~Logger () |
void | msg (std::string text, LogMessageType type=NOTIFICATION, bool global=false, int line=-1, std::string srcfile="") |
void | info (std::string text) |
void | progress (std::string text) |
void | warning (std::string text) |
void | error (std::string text) |
void | verbose (std::string text, bool global=false, int line=-1, std::string srcfile="") |
void | debug (std::string text, bool global=false, int line=-1, std::string srcfile="") |
void | notification (std::string text) |
void | set_rank (int rank) |
void | set_debugging_mode () |
Turns on verbosity on all channels. More... | |
void | set_console_loglevel (LogMessageType level=PROGRESS) |
Sets loglevel for console output. More... | |
void | set_logfile_loglevel (LogMessageType level=NOTIFICATION) |
Sets loglevel for file output. More... | |
template<typename T > | |
void | parameter (std::string name, T value) |
A generic logger class that logs to screen and a log-file.
Logs message to console and a log-file. What goes where can be adjusted by the LogMessageType.
Logger::Logger | ( | std::string | filename, |
int | rank, | ||
LogMessageType | console = PROGRESS , |
||
LogMessageType | file = NOTIFICATION |
||
) |
|
virtual |
void Logger::debug | ( | std::string | text, |
bool | global = false , |
||
int | line = -1 , |
||
std::string | srcfile = "" |
||
) |
void Logger::error | ( | std::string | text | ) |
void Logger::info | ( | std::string | text | ) |
void Logger::msg | ( | std::string | text, |
LogMessageType | type = NOTIFICATION , |
||
bool | global = false , |
||
int | line = -1 , |
||
std::string | srcfile = "" |
||
) |
void Logger::notification | ( | std::string | text | ) |
|
inline |
void Logger::progress | ( | std::string | text | ) |
void Logger::set_console_loglevel | ( | LogMessageType | level = PROGRESS | ) |
void Logger::set_debugging_mode | ( | ) |
Turns on verbosity on all channels.
void Logger::set_logfile_loglevel | ( | LogMessageType | level = NOTIFICATION | ) |
void Logger::verbose | ( | std::string | text, |
bool | global = false , |
||
int | line = -1 , |
||
std::string | srcfile = "" |
||
) |
void Logger::warning | ( | std::string | text | ) |