|
|||
|
|||
|
#include <filelogger.h>
Inheritance diagram for FileLogStream:


Public Member Functions | |
| FileLogStream (InspIRCd *Instance, int loglevel, FileWriter *fw) | |
| virtual | ~FileLogStream () |
| virtual void | OnLog (int loglevel, const std::string &type, const std::string &msg) |
| Called when there is stuff to log for this particular logstream. | |
Private Attributes | |
| FileWriter * | f |
Definition at line 36 of file filelogger.h.
|
||||||||||||||||
|
Definition at line 22 of file filelogger.cpp. References LogManager::AddLoggerRef(), f, InspIRCd::Logs, and LogStream::ServerInstance. |
|
|
Definition at line 28 of file filelogger.cpp. References LogManager::DelLoggerRef(), f, InspIRCd::Logs, and LogStream::ServerInstance. |
|
||||||||||||||||
|
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. Definition at line 34 of file filelogger.cpp. References InspIRCd::Config, f, ServerConfig::forcedebug, LogStream::loglvl, LogStream::ServerInstance, strlcpy(), InspIRCd::Time(), and FileWriter::WriteLogLine(). |
|
|
Definition at line 39 of file filelogger.h. Referenced by FileLogStream(), OnLog(), and ~FileLogStream(). |