class CoreExport FileWriter : public EventHandler
{
protected:
- /** The creator/owner of this object
- */
- InspIRCd* ServerInstance;
-
/** The log file (fd is inside this somewhere,
* we get it out with fileno())
*/
public:
/** The constructor takes an already opened logfile.
*/
- FileWriter(InspIRCd* Instance, FILE* logfile);
+ FileWriter(FILE* logfile);
/** Handle pending write events.
* This will flush any waiting data to disk.
class CoreExport LogStream : public classbase
{
protected:
- InspIRCd *ServerInstance;
int loglvl;
public:
- LogStream(InspIRCd *Instance, int loglevel) : ServerInstance(Instance), loglvl(loglevel)
+ LogStream(int loglevel) : loglvl(loglevel)
{
}
*/
LogStream* noforkstream;
- InspIRCd *ServerInstance;
-
/** Map of active log types and what LogStreams will receive them.
*/
std::map<std::string, std::vector<LogStream *> > LogStreams;
public:
- LogManager(InspIRCd *Instance)
+ LogManager()
{
noforkstream = NULL;
- ServerInstance = Instance;
Logging = false;
}