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

Configure logrus.Entry instead of Logger for better customization #232

Open
reinkrul opened this issue Jul 17, 2022 · 0 comments
Open

Configure logrus.Entry instead of Logger for better customization #232

reinkrul opened this issue Jul 17, 2022 · 0 comments

Comments

@reinkrul
Copy link

server.Configuration takes a *logrus.Logger, which works fine for customizing the log output. However, if you want to further customize the log with additional fields using WithField (e.g. indicating it's logs from the IRMA library) the only (hacky) way is to have a decorator formatter.

This can be easily fixed by allowing a *logrus.Entry to be configured instead of Logger.

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

No branches or pull requests

1 participant