Module: AwesomePrintLogger

Defined in:
lib/ap/core_ext/logger.rb

Overview

Copyright © 2010-2011 Michael Dvorkin

Awesome Print is freely distributable under the terms of MIT license. See LICENSE file or www.opensource.org/licenses/mit-license.php


Instance Method Summary collapse

Instance Method Details

#ap(object, level = nil) ⇒ Object

Add ap method to logger



10
11
12
13
# File 'lib/ap/core_ext/logger.rb', line 10

def ap(object, level = nil)
  level ||= AwesomePrint.defaults[:log_level] || :debug
  send level, object.ai
end