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

Decoupling from log.Logger #13

Merged
merged 3 commits into from
Apr 3, 2015
Merged

Decoupling from log.Logger #13

merged 3 commits into from
Apr 3, 2015

Conversation

roncohen
Copy link
Owner

@roncohen roncohen commented Apr 1, 2015

Introduced NewWithLogger which takes the StdLogger interface from Sirupsens LogRus.
This also makes it possible to disable logging completely by passing nil to NewWithLogger.

Ron Cohen added 2 commits April 1, 2015 23:17
Introduced NewWithLogger which takes the StdLogger interface from Sirupsens LogRus.
This also makes it possible to disable logging completely by passing nil to NewWithLogger.
@@ -121,26 +121,14 @@ type Opbeat struct {
Host string
Revision string
LoggerName string
*log.Logger
Logger StdLogger
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unexported or exported? What are your thoughts?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll make it unexported.

@hallas
Copy link
Contributor

hallas commented Apr 3, 2015

I like it!

roncohen added a commit that referenced this pull request Apr 3, 2015
@roncohen roncohen merged commit 7a5fc96 into master Apr 3, 2015
@hallas hallas deleted the decouple-logger branch April 15, 2015 08:34
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