class
Logbuch::Settings
- Logbuch::Settings
- Reference
- Object
Overview
The limits a conversion starts with, as Logbuch.settings returns them.
A Settings never changes: Logbuch.configure replaces it with a new
one.
Defined in:
logbuch/settings.crInstance Method Summary
-
#inspect(io : IO) : Nil
Writes the settings as
#<Logbuch::Settings max_depth: 16, …>. -
#max_cap : UInt32
The items logged from one collection; the rest are counted.
-
#max_depth : UInt32
The nesting depth of objects, structs and collections in one traced value; deeper ones are logged as their identity, such as
"o-17". -
#max_length : UInt32
The characters logged from one string, and from the
#inspecttext of a value; the rest are counted. -
#to_s(io : IO) : Nil
Writes the settings as
max_depth: 16, max_cap: 100, max_length: 1024.
Instance methods inherited from class Reference
inspect(io : IO) : Nil
inspect
Instance methods inherited from class Object
to_trace(tracer : Logbuch::Tracer) : Log::Metadata::Value
to_trace
Instance Method Detail
The items logged from one collection; the rest are counted.
MAX_CAP by default, and LOGBUCH_MAX_CAP overrides it.
The nesting depth of objects, structs and collections in one traced
value; deeper ones are logged as their identity, such as
"o-17". From 0 to DEPTH_CEILING, MAX_DEPTH by default, and
LOGBUCH_MAX_DEPTH overrides it.
The characters logged from one string, and from the #inspect text of a
value; the rest are counted. MAX_LENGTH by default, and
LOGBUCH_MAX_LENGTH overrides it.