Sha256: c0a78ae6e8009bb0914053127b598fddc662818a03a5eed631001f4a64c3fe0b
Contents?: true
Size: 337 Bytes
Versions: 2
Compression:
Stored size: 337 Bytes
Contents
module DaemonLogger def init_logger 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.datetime_format = "%y-%m-%d %H:%M:%S.%L" end def logger init_logger @logger end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game-server-0.3.1 | lib/daemon_logger.rb |
game-server-0.3.0 | lib/daemon_logger.rb |