diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-10-18 21:26:11 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-10-19 22:35:33 +0200 |
commit | 4d229c71983aa7c808ed97970c7d697cfbb70c49 (patch) | |
tree | 456743c48eef0efdbdf98eebc9b7efe39a7140b6 /src/account-server | |
parent | 9c02241c2c714e94f8af413030ed55a64179f06b (diff) | |
download | manaserv-4d229c71983aa7c808ed97970c7d697cfbb70c49.tar.gz manaserv-4d229c71983aa7c808ed97970c7d697cfbb70c49.tar.xz manaserv-4d229c71983aa7c808ed97970c7d697cfbb70c49.zip |
Have one place where the Logger is initialized
log_accountToStandardOutput and log_gameToStandardOutput have been
merged together as log_toStandardOutput.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/account-server')
-rw-r--r-- | src/account-server/main-account.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 5520fb8..01ec0ce 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -141,14 +141,7 @@ static void initialize() // Initialize PhysicsFS PHYSFS_init(""); - // Initialize the logger. - Logger::setLogFile(logFile, true); - - // Write the messages to both the screen and the log file. - Logger::setTeeMode( - Configuration::getBoolValue("log_accountToStandardOutput", - true)); - LOG_INFO("Using log file: " << logFile); + Logger::initialize(logFile); // Indicate in which file the statistics are put. statisticsFile = Configuration::getValue("log_statisticsFile", @@ -156,16 +149,6 @@ static void initialize() LOG_INFO("Using statistics file: " << statisticsFile); - // Set up the options related to log rotation. - Logger::enableLogRotation(Configuration::getBoolValue("log_enableRotation", - false)); - - Logger::setMaxLogfileSize(Configuration::getValue("log_maxFileSize", - 1024)); - - Logger::setSwitchLogEachDay(Configuration::getBoolValue("log_perDay", - false)); - ResourceManager::initialize(); // Open database |