|
|||
|
|||
|
#include <logger.h>
Inheritance diagram for LogStream:


Public Member Functions | |
| LogStream (InspIRCd *Instance, int loglevel) | |
| virtual | ~LogStream () |
| void | ChangeLevel (int lvl) |
| Changes the loglevel for this LogStream on-the-fly. | |
| virtual void | OnLog (int loglevel, const std::string &type, const std::string &msg)=0 |
| Called when there is stuff to log for this particular logstream. | |
Protected Attributes | |
| InspIRCd * | ServerInstance |
| int | loglvl |
Modules (and other stuff) inherit from this to decide what logging they are interested in, and what to do with it.
Definition at line 97 of file logger.h.
|
||||||||||||
|
|
|
|
|
|
|
Changes the loglevel for this LogStream on-the-fly. This is needed for -nofork. But other LogStreams could use it to change loglevels. Definition at line 115 of file logger.h. Referenced by LogManager::SetupNoFork(). |
|
||||||||||||||||
|
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. Implemented in FileLogStream. |
|
|
Definition at line 101 of file logger.h. Referenced by FileLogStream::OnLog(). |
|
|
Definition at line 100 of file logger.h. Referenced by FileLogStream::FileLogStream(), FileLogStream::OnLog(), and FileLogStream::~FileLogStream(). |