https://github.com/flimzy/log
A simple wrapper around the standard Go 'log' package, to add a Debug() method
https://github.com/flimzy/log
Last synced: 10 months ago
JSON representation
A simple wrapper around the standard Go 'log' package, to add a Debug() method
- Host: GitHub
- URL: https://github.com/flimzy/log
- Owner: flimzy
- License: mit
- Created: 2016-09-10T09:06:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-16T14:46:15.000Z (over 9 years ago)
- Last Synced: 2025-03-02T05:44:22.369Z (over 1 year ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](http://godoc.org/github.com/flimzy/log)
Package `log` provides a simple wrapper around the standard Go library's `log`
package, combining concepts from two of Dave Cheney's blog posts:
- [Using // +build to switch between debug and release builds](http://dave.cheney.net/2014/09/28/using-build-to-switch-between-debug-and-release)
- [Let’s talk about logging](http://dave.cheney.net/2015/11/05/lets-talk-about-logging)
In particular, it exposes only the `log.Print*` functions, and adds an
additional set of `log.Debug*` functions, which in turn call their `log.Print*`
counterparts only when the 'debug' build tag is present.
This package is released under the terms of the MIT license. See the included
LICENSE.txt for details.