class Logbuch::Settings

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.cr

Instance Method Summary

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

def inspect(io : IO) : Nil #

Writes the settings as #<Logbuch::Settings max_depth: 16, …>.


[View source]
def max_cap : UInt32 #

The items logged from one collection; the rest are counted. MAX_CAP by default, and LOGBUCH_MAX_CAP overrides it.


[View source]
def 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". From 0 to DEPTH_CEILING, MAX_DEPTH by default, and LOGBUCH_MAX_DEPTH overrides it.


[View source]
def max_length : UInt32 #

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.


[View source]
def to_s(io : IO) : Nil #

Writes the settings as max_depth: 16, max_cap: 100, max_length: 1024.


[View source]