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

Expose log level for default logger and provide helper methods #61

Closed
jeevatkm opened this issue Jun 6, 2017 · 1 comment
Closed

Expose log level for default logger and provide helper methods #61

jeevatkm opened this issue Jun 6, 2017 · 1 comment
Assignees
Labels
enhancement lib-log Logging information

Comments

@jeevatkm
Copy link
Member

jeevatkm commented Jun 6, 2017

Goal is to expose log level from log library.

Expose log level for default logger, since logger already does it - Refer here

log.Level()

and provide helper methods. It would be helpful for user to check before doing log (it contributes to performance).

  • log.IsLevelInfo()
  • log.IsLevelError()
  • log.IsLevelWarn()
  • log.IsLevelDebug()
  • log.IsLevelTrace()
@jeevatkm jeevatkm added enhancement lib-log Logging information labels Jun 6, 2017
@jeevatkm jeevatkm added this to the v0.7 Milestone milestone Jun 9, 2017
@jeevatkm jeevatkm self-assigned this Jun 9, 2017
jeevatkm added a commit to go-aah/log that referenced this issue Jun 9, 2017
jeevatkm added a commit to go-aah/log that referenced this issue Jun 10, 2017
@jeevatkm
Copy link
Member Author

It's done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement lib-log Logging information
Projects
None yet
Development

No branches or pull requests

1 participant