https://github.com/sr/protolog
Structured logging with Protocol Buffers
https://github.com/sr/protolog
Last synced: 5 months ago
JSON representation
Structured logging with Protocol Buffers
- Host: GitHub
- URL: https://github.com/sr/protolog
- Owner: sr
- License: mit
- Archived: true
- Created: 2015-12-07T14:27:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-09T21:28:25.000Z (over 10 years ago)
- Last Synced: 2024-06-20T17:46:07.343Z (almost 2 years ago)
- Language: Go
- Homepage: https://godoc.org/github.com/sr/protolog
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://circleci.com/gh/peter-edge/protolog-go/tree/master)
[](http://goreportcard.com/report/peter-edge/protolog-go)
[](https://godoc.org/go.pedge.io/protolog)
[](https://github.com/peter-edge/protolog-go/blob/master/LICENSE)
```shell
go get go.pedge.io/protolog
```
Initial beta release coming soon - I need to do one more pass on this and then document all the functionality.
* Structured logging with Protocol buffers
* Child of https://github.com/peter-edge/ledge-go
* Some compatibility with existing libraries (specifically logrus and glog)
* Two-way serialization - write logs somewhere, read them back, language independent
### Where to poke around
* `protolog.go`: all the public definiions
* `protolog.proto`: the protos that are serialized over the wire
* `testing*`: test compilation of proto definitions
* `benchmark*`: more compilation of proto definitions, and benchmarks
* `make test`: will print out some logs with the default text marshaller
* `make bench`: some basic benchmarks
### TODO
* journal writer?
* colors in terminals
* better text formatting/options
* third-party logs integration
* performance improvements/testing
* documentation