Method: Ougai::Formatters::Readable#initialize
- Defined in:
- lib/ougai/formatters/readable.rb
#initialize(app_name = nil, hostname = nil, opts = {}) ⇒ Readable
Intialize a formatter
21 22 23 24 25 26 27 28 29 |
# File 'lib/ougai/formatters/readable.rb', line 21 def initialize(app_name = nil, hostname = nil, opts = {}) aname, hname, opts = Base.parse_new_params([app_name, hostname, opts]) super(aname, hname, opts) @trace_indent = opts.fetch(:trace_indent, 4) @plain = opts.fetch(:plain, false) @excluded_fields = opts[:excluded_fields] || [] @serialize_backtrace = true load_dependent end |