https://github.com/clavoie/logu
Injectable wrappers around AppEngine logging for Go
https://github.com/clavoie/logu
appengine appengine-go go golang logging
Last synced: about 1 month ago
JSON representation
Injectable wrappers around AppEngine logging for Go
- Host: GitHub
- URL: https://github.com/clavoie/logu
- Owner: clavoie
- License: mit
- Created: 2018-08-23T11:42:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-21T18:08:48.000Z (about 5 years ago)
- Last Synced: 2025-04-12T00:49:43.390Z (about 1 month ago)
- Topics: appengine, appengine-go, go, golang, logging
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logu [](http://godoc.org/github.com/clavoie/logu) [](https://travis-ci.org/clavoie/logu) [](https://goreportcard.com/report/github.com/clavoie/logu)
Injectable wrappers around Google AppEngine logging for Go.
logu is an interface around the Google AppEngine [log package](https://cloud.google.com/appengine/docs/standard/go/logs/reference) that integrates well with dependency injection. An implementation of the logging interface is also provided for [testing](https://godoc.org/github.com/clavoie/logu#NewTestLogger), a [null logger](https://godoc.org/github.com/clavoie/logu#NewNullLogger) implementation which throws away all log messages, as well as an [implementation that writes to the go log package](https://godoc.org/github.com/clavoie/logu#NewGoLogger). [Mocks](https://godoc.org/github.com/clavoie/logu/mocks) generated by [mockgen](https://github.com/golang/mock) are also provided as part of this package.
A full example of using logu along with [erru](https://github.com/clavoie/erru) and [di](https://github.com/clavoie/di) is available [here](https://godoc.org/github.com/clavoie/logu#example-Logger).