Module | Mixlib::Log |
In: |
lib/mixlib/log.rb
lib/mixlib/log/formatter.rb |
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.
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.