diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-10-19 23:55:30 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-10-19 23:55:30 +0200 |
commit | 8629addec23239b667295c68ee3061ebc4ca918d (patch) | |
tree | 067f2969ea12053e5636dbb6035def59c32b01a2 /src/account-server | |
parent | 77ea3d90114a7d6503d19e89ffaf2e548f63e420 (diff) | |
parent | 03ff7c110e536de1f8b239817e50cb07c492da6f (diff) | |
download | manaserv-8629addec23239b667295c68ee3061ebc4ca918d.tar.gz manaserv-8629addec23239b667295c68ee3061ebc4ca918d.tar.xz manaserv-8629addec23239b667295c68ee3061ebc4ca918d.zip |
Merge branch 'master' of github.com:mana/manaserv
Conflicts:
src/game-server/accountconnection.cpp
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 6d46ec4..0adf128 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 |