summaryrefslogtreecommitdiff
path: root/include/logger.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
commit6d03943426dcce76ba66567a9b18425a5ebb4c0c (patch)
treebedffa6d2a65a9ef556405224a6d7a181c8a1ba5 /include/logger.h
parent810c662c9b55908101ca085293c52c3239ef22d1 (diff)
Remove InspIRCd* parameters and fields
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/logger.h')
-rw-r--r--include/logger.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/logger.h b/include/logger.h
index d6bd07498..37020a4ff 100644
--- a/include/logger.h
+++ b/include/logger.h
@@ -29,10 +29,6 @@
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())
*/
@@ -45,7 +41,7 @@ class CoreExport FileWriter : public EventHandler
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.
@@ -96,10 +92,9 @@ class CoreExport FileWriter : public EventHandler
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)
{
}
@@ -133,8 +128,6 @@ class CoreExport LogManager : public classbase
*/
LogStream* noforkstream;
- InspIRCd *ServerInstance;
-
/** Map of active log types and what LogStreams will receive them.
*/
std::map<std::string, std::vector<LogStream *> > LogStreams;
@@ -154,10 +147,9 @@ class CoreExport LogManager : public classbase
public:
- LogManager(InspIRCd *Instance)
+ LogManager()
{
noforkstream = NULL;
- ServerInstance = Instance;
Logging = false;
}