Sha256: 64f81697bbfbfcba3c3af9233704e70c3b8ceeb3a573316eb0b441586698a47a
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
module GameMachine class JavaLogger [:info, :error, :warn, :fatal, :debug].each do |name| define_method(name) do |msg| JavaLib::GameMachineLoader.logger.send(name.to_sym,msg) end end end module Logger LOGGER = JavaLogger.new def logfile File.join(ENV['APP_ROOT'], 'log',"#{ENV['GAME_ENV']}.log") end def logger LOGGER end end end GameMachine.send(:extend, GameMachine::Logger)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
game_machine-1.0.4 | lib/game_machine/logger.rb |
game_machine-1.0.2 | lib/game_machine/logger.rb |