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/game-server/main-game.cpp | |
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/game-server/main-game.cpp')
-rw-r--r-- | src/game-server/main-game.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index 9d96a6a..a9a6652 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -164,24 +164,7 @@ static void initializeServer() // 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_gameToStandardOutput", - true)); - - LOG_INFO("Using log file: " << logFile); - - // 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)); + Logger::initialize(logFile); // --- Initialize the managers // Initialize the slang's and double quotes filter. |