Skip to content

Split up logger.go and writer.go. #14

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

Merged
merged 10 commits into from
May 11, 2016
Merged

Conversation

ericsnowcurrently
Copy link
Contributor

@ericsnowcurrently ericsnowcurrently commented May 11, 2016

The global logger code is pulled out into global.go. Nothing else in writer.go is pulled out. Other code in logger.go is split out into config.go, level.go and module.go. Test code was also split out. A "loggotest" package is added which duplicates (albeit split up) the code in testwriter.go, which means we can stop using the testing code out of the loggo package.

Note: this patch strictly moves code around and doesn't actually change any code (except for factoring out newLogger() in logger.go); nothing new is added (except for some tests).

(Review request: http://reviews.vapour.ws/r/4812/)

@ericsnowcurrently
Copy link
Contributor Author

$$merge$$

@jujubot
Copy link
Contributor

jujubot commented May 11, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju-loggo

@jujubot jujubot merged commit 8d5890f into juju:master May 11, 2016
@ericsnowcurrently ericsnowcurrently deleted the split branch May 11, 2016 16:24
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