lib/vagrant/util/resource_logger.rb
# Returns a singleton logger. If one has not yet be
# instantiated, then the given environment will be used to
# create a new logger.
Returns a singleton logger. If one has not yet be
instantiated, then the given environment will be used to
create a new logger.
Returns a singleton logger . If one has not yet be instantiated then the given environment will be used to create a new logger .
def singleton_logger(env=nil)
          return PlainLogger.new(nil) if !env.loaded?
          @@singleton_logger ||= begin
            file = env.log_path.join("#{Time.now.to_i}.log")
            PlainLogger.new(file)
          end
        end
def singleton_logger ( env = nil ) return PlainLogger . new ( nil ) if ! env . loaded? @@singleton_logger ||= begin file = env . log_path . join ( "#{Time.now.to_i}.log" ) PlainLogger . new ( file ) end end
Returns a singleton logger.
Returns a singleton logger .
env
<not_specific>