Class: Unibanner::Logger
- Inherits:
-
Object
- Object
- Unibanner::Logger
- Defined in:
- lib/unibanner/logger.rb
Constant Summary collapse
- @@loggers =
{}
- @@instance =
Logging::Repository.instance
Class Method Summary collapse
-
.[](key) ⇒ Unibanner::Logger
grab a logger from the list for use.
Instance Method Summary collapse
-
#initialize(name) ⇒ Logger
constructor
create a new Unibanner::Logger instance.
-
#loggers ⇒ Array
return the loggers list.
-
#update ⇒ Object
update the loggers.
Constructor Details
Class Method Details
.[](key) ⇒ Unibanner::Logger
grab a logger from the list for use
74 75 76 |
# File 'lib/unibanner/logger.rb', line 74 def self.[](key) @@loggers[key] end |
Instance Method Details
#loggers ⇒ Array
return the loggers list
67 68 69 |
# File 'lib/unibanner/logger.rb', line 67 def loggers @@loggers end |
#update ⇒ Object
update the loggers
62 63 64 |
# File 'lib/unibanner/logger.rb', line 62 def update @@instance = Logging::Repository.instance end |