Class: GameMachine::JavaLogger

Inherits:
Object
  • Object
show all
Defined in:
server/lib/game_machine/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeJavaLogger

Returns a new instance of JavaLogger


9
10
11
# File 'server/lib/game_machine/logger.rb', line 9

def initialize
  @default_logger = create('default')
end

Instance Attribute Details

#default_loggerObject (readonly)

Returns the value of attribute default_logger


8
9
10
# File 'server/lib/game_machine/logger.rb', line 8

def default_logger
  @default_logger
end

Instance Method Details

#create(name) ⇒ Object


13
14
15
# File 'server/lib/game_machine/logger.rb', line 13

def create(name)
  LoggerFactory.getLogger(name)
end