Class: CleanLogger::Logger
- Inherits:
-
ActiveSupport::Logger
- Object
- ActiveSupport::Logger
- CleanLogger::Logger
- Defined in:
- lib/clean_logger/adapters/rails3.rb,
lib/clean_logger/adapters/rails4.rb
Instance Method Summary collapse
- #info(*args, &block) ⇒ Object
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
3 4 5 6 |
# File 'lib/clean_logger/adapters/rails4.rb', line 3 def initialize(*args) super @formatter = SimpleFormatter.new end |
Instance Method Details
#info(*args, &block) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/clean_logger/adapters/rails3.rb', line 3 def info(*args, &block) = args.first return super unless return if .include?(%[Started GET "/assets/]) return if .include?(%[Served asset]) return if .blank? && = .blank? super end |