summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-19 06:53:37 +0100
committerPeter Powell <petpow@saberuk.com>2013-05-19 03:22:54 +0100
commitad0828aa6431021df45563d34de9976b2d303098 (patch)
tree312d70a6241c3680eaa2dea19cc8e91c7e5bb8dc /src
parentac726c8896d3bb136d6da854bd728118e75ec914 (diff)
Move LogHeader to LogStream.
Diffstat (limited to 'src')
-rw-r--r--src/logger.cpp6
-rw-r--r--src/server.cpp5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index b33f65ac4..bc1dd3253 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -51,6 +51,10 @@
*
*/
+const char LogStream::LogHeader[] =
+ "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
+ " - compiled on " SYSTEM;
+
LogManager::LogManager()
{
Logging = false;
@@ -126,7 +130,7 @@ void LogManager::OpenFileLogs()
fw = fwi->second;
}
FileLogStream* fls = new FileLogStream(loglevel, fw);
- fls->OnLog(LOG_SPARSE, "HEADER", InspIRCd::LogHeader);
+ fls->OnLog(LOG_SPARSE, "HEADER", LogStream::LogHeader);
AddLogTypes(type, fls, true);
}
}
diff --git a/src/server.cpp b/src/server.cpp
index 2e6109202..66b175a1a 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -73,11 +73,6 @@ std::string InspIRCd::GetVersionString(bool getFullVersion)
return BRANCH " " + Config->ServerName + " :" + Config->CustomVersion;
}
-const char InspIRCd::LogHeader[] =
- "Log started for " VERSION " (" REVISION ", " MODULE_INIT_STR ")"
- " - compiled on " SYSTEM;
-
-
std::string UIDGenerator::GenerateSID(const std::string& servername, const std::string& serverdesc)
{
unsigned int sid = 0;