InspIRCd
3.0
|
#include <filelogger.h>
Public Member Functions | |
FileLogStream (LogLevel loglevel, FileWriter *fw) | |
void | OnLog (LogLevel loglevel, const std::string &type, const std::string &msg) CXX11_OVERRIDE |
![]() | |
LogStream (LogLevel loglevel) | |
void | ChangeLevel (LogLevel lvl) |
![]() | |
virtual CullResult | cull () |
Additional Inherited Members | |
![]() | |
static const char | LogHeader [] |
![]() | |
LogLevel | loglvl |
A logging class which logs to a streamed file.
|
virtual |
Called when there is stuff to log for this particular logstream. The derived class may take no action with it, or do what it wants with the output, basically. loglevel and type are primarily for informational purposes (the level and type of the event triggered) and msg is, of course, the actual message to log.
Implements LogStream.