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

Exposed the logger to enable other services to control #6

Closed
wants to merge 1 commit into from

Conversation

blezek
Copy link

@blezek blezek commented Jan 20, 2015

Hi, I exposed the lrserver.Logger to use lrserver as a library and control how "chatty" it is.

Best,
-dan

@jaschaephraim jaschaephraim added this to the 2.0.0 milestone Jan 20, 2015
@jaschaephraim
Copy link
Owner

Hey Dan, that's a good idea. I'm actually just about to release v2 which is much improved, and provides access to the logger. It will break the current API so keep an eye out for that.

@jaschaephraim
Copy link
Owner

@dblezek

v2 is now in the 2.0.0 branch. You can get/set separate status and error loggers:

lr, err := lrserver.New(lrserver.DefaultName, lrserver.DefaultPort)

statusLogger := lr.StatusLog()
errorLogger := lr.ErrorLog()

lr.SetStatusLog(nil)
lr.SetErrorLog(nil)

Feel free to submit any issues or pull requests.

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