class Logger

Public Class Methods

factory(name, *args) click to toggle source

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)

# 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