Class: ActiveSupport::BufferedLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

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


Constant Summary collapse

BRIGHT =
"\033[1;37;40m"
NORMAL =
"\033[0m"

Instance Method Summary collapse

Instance Method Details

#i(*args) ⇒ Object



16
17
18
# File 'lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb', line 16

def i(*args)
  info "#{BRIGHT}\n\n#{args.map(&:inspect).join(' ')}#{NORMAL}\n\n\n"
end

#p(*args) ⇒ Object



12
13
14
# File 'lib/fat_free_crm/gem_ext/active_support/buffered_logger.rb', line 12

def p(*args)
  info "#{BRIGHT}\n\n#{args.join(' ')}#{NORMAL}\n\n\n"
end