Class: Nasty::Log
- Inherits:
-
Object
- Object
- Nasty::Log
- Defined in:
- lib/nasty/log.rb
Class Method Summary collapse
Class Method Details
.bind_to(log_factory) ⇒ Object
6 7 8 |
# File 'lib/nasty/log.rb', line 6 def bind_to(log_factory) @@log_factory = log_factory end |
.for(target) ⇒ Object
10 11 12 13 |
# File 'lib/nasty/log.rb', line 10 def for(target) @@log_factory || ConsoleLogFactory.new @@log_factory.create_for(target) end |