Sha256: b749dd4444d31155b09543edf9f15f7cfca4c021ca9cf1be561f567f2f949126

Contents?: true

Size: 246 Bytes

Versions: 5

Compression:

Stored size: 246 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
  end

  def logger
    init_logger
    @logger
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
game-server-0.2.4 lib/daemon_logger.rb
game-server-0.2.3 lib/daemon_logger.rb
game-server-0.2.2 lib/daemon_logger.rb
game-server-0.2.1 lib/daemon_logger.rb
game-server-0.2.0 lib/daemon_logger.rb