https://github.com/jmank88/logprinter
A Print/Printf adapter for kit/log
https://github.com/jmank88/logprinter
go go-kit golang logging
Last synced: 6 months ago
JSON representation
A Print/Printf adapter for kit/log
- Host: GitHub
- URL: https://github.com/jmank88/logprinter
- Owner: jmank88
- License: mit
- Created: 2017-03-01T17:42:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T17:39:10.000Z (over 8 years ago)
- Last Synced: 2025-02-09T02:26:54.023Z (8 months ago)
- Topics: go, go-kit, golang, logging
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logprinter [](https://godoc.org/github.com/jmank88/logprinter) [](https://goreportcard.com/report/github.com/jmank88/logprinter)
A Print/Printf adapter for kit/log```go
var l log.Logger = &exampleLogger{}
p := logprinter.NewPrinter(l, "msg")
p.Print("test")
p.Printf("%d", 10)
```Output:
```text
msg test
msg 10
```