https://github.com/arran4/gaelogger
Another google apps engine go logger this one is for the new go111+ world..
https://github.com/arran4/gaelogger
go golang google-app-engine google-app-engine-logger logger-abstraction
Last synced: about 2 months ago
JSON representation
Another google apps engine go logger this one is for the new go111+ world..
- Host: GitHub
- URL: https://github.com/arran4/gaelogger
- Owner: arran4
- Created: 2020-01-08T06:01:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T23:05:25.000Z (about 2 years ago)
- Last Synced: 2025-01-13T18:24:35.639Z (3 months ago)
- Topics: go, golang, google-app-engine, google-app-engine-logger, logger-abstraction
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Another google apps engine go logger this one is for the new go111+ world..
Usage is simple:
```go
import (
"github.com/arran4/gaelogger"
"net/http"
)func init() {
http.HandleFunc("/", handle)
}func handle(writer http.ResponseWriter, request *http.Request) {
logger := gaelogger.NewLogger(request)
defer logger.Close()
logger.Infof("%s request: %v %v", request.Method, request.URL.RawPath, request.URL.RawQuery)
}
```