https://github.com/joefitzgerald/standardlog
A Go (golang) Interface For The Standard Library's log.Logger
https://github.com/joefitzgerald/standardlog
Last synced: about 1 year ago
JSON representation
A Go (golang) Interface For The Standard Library's log.Logger
- Host: GitHub
- URL: https://github.com/joefitzgerald/standardlog
- Owner: joefitzgerald
- License: apache-2.0
- Created: 2014-08-09T21:23:50.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-10T16:06:07.000Z (almost 12 years ago)
- Last Synced: 2025-04-30T18:06:00.439Z (about 1 year ago)
- Language: Go
- Size: 145 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Standardlog
===========
[](https://app.wercker.com/project/bykey/f5ccdd31a32c541bca3271b382909151)
The [go 1 compatibility promise](http://golang.org/doc/go1compat) prevents the
standard library from changing `log.Logger` to be an interface.
This library has one single goal: to provide an interface that matches the
functions in `log.Logger` so that you can substitute the standard Logger with a
replacement if needed.
## Usage
`go get -u github.com/joefitzgerald/standardlog`
```go
import (
"os"
"github.com/joefitzgerald/standardlog"
)
func main() {
var l standardlog.Logger
l = log.New(os.Stdout, "", 0)
// Use l here...
}
```