Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Refactor logging #363

Merged
merged 3 commits into from
Sep 15, 2015
Merged

Refactor logging #363

merged 3 commits into from
Sep 15, 2015

Conversation

davecheney
Copy link
Contributor

Refactor logging

  • move log functions into their own package, log. Hopefully one day in the future this can be outsourced.
  • Logging is now more opinionated, there are only three levels and three corresponding log commands, Debugf, Infof and Fataf. Verbose enables debug level, Quiet silences info level, that's all there is too it. Errors, if not fatal should be handled and printed at info level -- they were not fatal after all.

Introduce new package gb/log. Perhaps one day this can be outsourced
to a 3rd party.
Remove log.Errorf, it was only used in one place.
Remove log.Warnf, it was not used.
@davecheney
Copy link
Contributor Author

/cc @PSG-luna, this will be part of the 0.1.2 release next week. Please test with gb-appengine

davecheney added a commit that referenced this pull request Sep 15, 2015
@davecheney davecheney merged commit 75e7810 into master Sep 15, 2015
@davecheney davecheney deleted the log branch September 15, 2015 01:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant