Class: LoggerFactory
- Inherits:
-
Object
- Object
- LoggerFactory
- Defined in:
- lib/common/loggerfactory.rb
Constant Summary collapse
- @@instance =
singleton
nil
Class Method Summary collapse
Class Method Details
.get_logger(loggerName) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/common/loggerfactory.rb', line 28 def LoggerFactory.get_logger( loggerName ) if ( @@instance == nil ) create_default_instance end return @@instance.get_logger( loggerName ) end |
.set_instance(newLogFactory) ⇒ Object
37 38 39 |
# File 'lib/common/loggerfactory.rb', line 37 def LoggerFactory.set_instance( newLogFactory ) @@instance = newLogFactory end |