|
Freya
0.0.1
A Gtk3 MPD Client
|
#include <Writer.hh>
Public Member Functions | |
| ~Writer () | |
| Closes the Log also properly. It is not fatal when not being called. | |
| void | message (const char *file, int line, LOGLEVEL level, const char *msg,...) |
| Actual instance method called. Do not use directly! | |
| void | set_verbosity (LOGLEVEL v) |
| Set the max. verbosity. | |
| LOGLEVEL | get_verbosity () |
| Get the currently set verbosity level. | |
| void | clear () |
| Clear the logfile (but keep it open) | |
Closes the Log also properly. It is not fatal when not being called.
| void Log::Writer::clear | ( | ) |
Clear the logfile (but keep it open)
Get the currently set verbosity level.
| void Log::Writer::message | ( | const char * | file, |
| int | line, | ||
| LOGLEVEL | level, | ||
| const char * | msg, | ||
| ... | |||
| ) |
Actual instance method called. Do not use directly!
| file | Passed by the macro. |
| line | Passed by the macro. |
| level | Severitylevel |
| msg | Actual message |
| ... | a va_list to allow printf style logging |
| void Log::Writer::set_verbosity | ( | LOGLEVEL | v | ) |
Set the max. verbosity.
LOG_DEBUG is the highest level, LOG_FATAL_ERROR the lowest, the priority can be read from the LOGLEVEL enum above, to diasable logging completely you may pass 0.
| v | a member of the LOGLEVEL enum |
1.8.0