Add log-tailing to launcher options

This commit is contained in:
Griatch 2018-01-19 23:47:14 +01:00
parent 4769599cf9
commit a2d63c9582
4 changed files with 125 additions and 8 deletions

View file

@ -534,8 +534,8 @@ ServerConfig.objects.conf("server_starting_mode", True)
application = service.Application('Evennia')
# custom logging
logfile = logger.WeeklyLogFile(os.path.basename(settings.PORTAL_LOG_FILE),
os.path.dirname(settings.PORTAL_LOG_FILE))
logfile = logger.WeeklyLogFile(os.path.basename(settings.SERVER_LOG_FILE),
os.path.dirname(settings.SERVER_LOG_FILE))
application.setComponent(ILogObserver, logger.ServerLogObserver(logfile).emit)
# The main evennia server program. This sets up the database