summaryrefslogtreecommitdiff
path: root/src/logger.cpp
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 /src/logger.cpp
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 'src/logger.cpp')
-rw-r--r--src/logger.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 049b4b5e7..e2baa4b8d 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -48,8 +48,8 @@ void LogManager::SetupNoFork()
{
if (!noforkstream)
{
- FileWriter* fw = new FileWriter(ServerInstance, stdout);
- noforkstream = new FileLogStream(ServerInstance, ServerInstance->Config->forcedebug ? DEBUG : DEFAULT, fw);
+ FileWriter* fw = new FileWriter(stdout);
+ noforkstream = new FileLogStream(ServerInstance->Config->forcedebug ? DEBUG : DEFAULT, fw);
}
else
{
@@ -70,7 +70,7 @@ void LogManager::OpenFileLogs()
{
return;
}
- ConfigReader* Conf = new ConfigReader(ServerInstance);
+ ConfigReader* Conf = new ConfigReader;
std::map<std::string, FileWriter*> logmap;
std::map<std::string, FileWriter*>::iterator i;
for (int index = 0; index < Conf->Enumerate("log"); ++index)
@@ -109,14 +109,14 @@ void LogManager::OpenFileLogs()
if ((i = logmap.find(target)) == logmap.end())
{
FILE* f = fopen(target.c_str(), "a");
- fw = new FileWriter(ServerInstance, f);
+ fw = new FileWriter(f);
logmap.insert(std::make_pair(target, fw));
}
else
{
fw = i->second;
}
- FileLogStream* fls = new FileLogStream(ServerInstance, loglevel, fw);
+ FileLogStream* fls = new FileLogStream(loglevel, fw);
AddLogTypes(type, fls, true);
}
}
@@ -330,8 +330,8 @@ void LogManager::Log(const std::string &type, int loglevel, const std::string &m
}
-FileWriter::FileWriter(InspIRCd* Instance, FILE* logfile)
-: ServerInstance(Instance), log(logfile), writeops(0)
+FileWriter::FileWriter(FILE* logfile)
+: log(logfile), writeops(0)
{
}