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

LoggerFactory support #76

Merged
merged 2 commits into from
May 27, 2022
Merged

LoggerFactory support #76

merged 2 commits into from
May 27, 2022

Conversation

bpholt
Copy link
Member

@bpholt bpholt commented May 26, 2022

log4cats added a new capability trait called LoggerFactory, which represents the ability to create a named logger. This makes it easier for applications to have helpfully named loggers throughout the app, instead of having a single global logger used everywhere.

This PR changes the library's entry points from requiring Logger[F] to require LoggerFactory[F]. It sets a default logger name of com.dwolla.security.crypto.CryptoAlg, although this can be overridden by users.

this includes a Java 8 runtime requirement, but we already effectively
require this, so that's fine
@bpholt bpholt merged commit 86706cc into main May 27, 2022
@bpholt bpholt deleted the loggerfactory-support branch May 27, 2022 22: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.

2 participants