Module Mixlib::Log
In: lib/mixlib/log.rb
lib/mixlib/log/formatter.rb

Methods

init   level   level=   logger   logger=   method_missing  

Classes and Modules

Class Mixlib::Log::Formatter

Public Instance methods

Use Mixlib::Log.init when you want to set up the logger manually. Arguments to this method get passed directly to Logger.new, so check out the documentation for the standard Logger class to understand what to do here.

If this method is called with no arguments, it will log to STDOUT at the :info level.

It also configures the Logger instance it creates to use the custom Mixlib::Log::Formatter class.

Sets the level for the Logger object by symbol. Valid arguments are:

 :debug
 :info
 :warn
 :error
 :fatal

Throws an ArgumentError if you feed it a bogus log level.

init always returns a configured logger and creates a new one if it doesn‘t yet exist

Passes any other method calls on directly to the underlying Logger object created with init. If this method gets hit before a call to Mixlib::Logger.init has been made, it will call Mixlib::Logger.init() with no arguments.

[Validate]