class Ougai::Formatters::Readable
def initialize(app_name = nil, hostname = nil, opts = {})
(**opts)
-
:excluded_fields
(String
) -- the value of excluded_fields attribute -
:plain
(String
) -- the value of plain attribute -
:trace_max_lines
(String
) -- the value of trace_max_lines attribute -
:trace_indent
(String
) -- the value of trace_indent attribute
Parameters:
-
opts
(Hash
) -- the initial values of attributes -
hostname
(String
) -- hostname (hostname if nil) -
app_name
(String
) -- application name (execution program name if nil)
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