lib/ougai/formatters/readable.rb in ougai-0.7.0 vs lib/ougai/formatters/readable.rb in ougai-0.7.1

- old
+ new

@@ -4,11 +4,11 @@ module Formatters class Readable < Base def initialize(app_name = nil, hostname = nil) super(app_name, hostname) @trace_indent = 4 - load_dependency + load_awesome_print end def call(severity, time, progname, data) msg = data.delete(:msg) strs = ["[#{time.iso8601(3)}] #{colored_level(severity)}: #{msg}"] @@ -40,10 +40,10 @@ "\e[#{color}m#{severity}\e[0m" end private - def load_dependency + def load_awesome_print require 'awesome_print' rescue LoadError puts 'You must install the awesome_print gem to use this output.' raise end