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

Improvements #30

Merged
merged 4 commits into from
May 12, 2019
Merged

Improvements #30

merged 4 commits into from
May 12, 2019

Conversation

deankarn
Copy link
Contributor

NOTE: breaking change as now relying on go-playground/pkg/runtime for stack information previously within go-playground/errors

  • Added default logger. If you register your own logger, of any kind,
    the default logger is removed and so is backward compatible. It is only registered when attached to a terminal.
  • Added Close methods to handlers to allow resource cleanup & automatic
    removal of the logger now that RemoveHandler and AddHandler can be made
    on the fly.
  • Updated to use go-playground/pkg/runtime.StackLevel(...) previously found int go-playground/errors

- Added default logger. If you register your own logger, of any kind,
the default logger is removed and so is backward compatible.
- Added Close methods to handlers to allow resource cleanup & automatic
removal of the logger now that RemoveHandler and AddHandler can be made
on the fly.
- only register default logger when attached to a terminal.
- updated README
- added new example without registering a logger.
- Update to latest dependency versions.
@deankarn deankarn self-assigned this May 12, 2019
@deankarn deankarn merged commit d70d76e into master May 12, 2019
@deankarn deankarn deleted the improvements branch May 12, 2019 18:31
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 98.116% when pulling 22d23c7 on improvements into fdcdf50 on master.

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

2 participants