Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-16T14:46:15.000Z (about 8 years ago)
- Last Synced: 2024-10-16T20:16:46.786Z (2 months 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
[![GoDoc](https://godoc.org/github.com/flimzy/log?status.png)](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.