lib/daemon_logger.rb in game-server-0.3.1 vs lib/daemon_logger.rb in game-server-0.3.2
- old
+ new
@@ -3,10 +3,10 @@
return if @logger
file = File.open(log_file_path, 'a')
file.sync = true
@logger = Logger.new(file)
@logger.level = Logger::DEBUG
- @logger.formatter = Formatter.new
+ @logger.formatter = Logger::Formatter.new
@logger.datetime_format = "%y-%m-%d %H:%M:%S.%L"
end
def logger
init_logger