Class: Log4r::Logger
- Inherits:
-
Object
- Object
- Log4r::Logger
- Defined in:
- lib/vagrant/patches/log4r.rb
Direct Known Subclasses
Class Method Summary collapse
-
.factory(name, *args) ⇒ Object
The factory allows using a previously created logger instance if it exists.
Class Method Details
.factory(name, *args) ⇒ Object
The factory allows using a previously created logger instance if it exists. Doing this prevents knocking out configuration that may have already been applied to the logger instance (like log level)
48 49 50 51 52 |
# File 'lib/vagrant/patches/log4r.rb', line 48 def self.factory(name, *args) l = Log4r::Logger::Repository[name] return l unless l.nil? Log4r::Logger.new(name, *args) end |