Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support block-based setup #16

Merged
merged 1 commit into from
Nov 12, 2022
Merged

Support block-based setup #16

merged 1 commit into from
Nov 12, 2022

Conversation

solnic
Copy link
Member

@solnic solnic commented Nov 12, 2022

This adds support for block-based setup that makes it possible to setup your own backends only and skip the default one:

> logger = Dry.Logger(:test) { |setup| setup.add_backend(formatter: :string, template: "LOG: %<message>s") }
=> #<Dry::Logger::Dispatcher:...

> logger.info "hi hello"
# LOG: hi hello

@solnic solnic merged commit abb8c2d into main Nov 12, 2022
@solnic solnic deleted the support-for-block-setup branch November 12, 2022 10:14
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.

None yet

1 participant