Skip to content

Conversation

@philippthun
Copy link
Member

@philippthun philippthun commented Mar 19, 2024

Introduce option :ignored_locations for Steno::Logger. When provided all frames from the callstack matching the regex are ignored, i.e. the first non-matching frame denotes the record's location.

This option can also be set via a Steno::Config instance that is passed to Steno.init before using Steno.logger to get a (cached) Steno::Logger instance.

Inspired by Sequel's caller_logging extension.

Introduce option :ignored_locations for Steno::Logger. When provided all
frames from the callstack matching the regex are ignored, i.e. the first
non-matching frame denotes the record's location.

This option can also be set via a Steno::Config instance that is passed
to Steno.init before using Steno.logger to get a (cached) Steno::Logger
instance.

Inspired by Sequel's caller_logging extension [1].

[1] https://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/
    CallerLogging.html#attribute-i-caller_logging_ignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants