Module: Grizzled::Rails::Logger
- Defined in:
- lib/grizzled/rails/logger.rb
Overview
Logger is the public face of this gem.
Defined Under Namespace
Modules: Extension Classes: Railtie
Constant Summary collapse
- Configuration =
Configuration constants
OpenStruct.new( :format => '[%T] (%S) %P %M', :timeformat => '%Y/%m/%d %H:%M:%S', :colorize => true, :flatten => true, :flatten_patterns => [ /.*/ ], :dont_flatten_patterns => [ ], :colors => { :debug => Term::ANSIColor.cyan, :warn => Term::ANSIColor.yellow + Term::ANSIColor.bold, :fatal => Term::ANSIColor.red + Term::ANSIColor.bold, :error => Term::ANSIColor.red } )
Class Method Summary collapse
-
.configure(&block) ⇒ Object
Configure the plugin.
Class Method Details
.configure(&block) ⇒ Object
Configure the plugin. Use like:
Grizzled::Rails::Logger.configure do |cfg|
cfg.flatten = false
...
end
43 44 45 |
# File 'lib/grizzled/rails/logger.rb', line 43 def configure(&block) block.call Configuration end |