An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![CircleCI](https://circleci.com/gh/peter-edge/protolog-go/tree/master.png)](https://circleci.com/gh/peter-edge/protolog-go/tree/master)
[![Go Report Card](http://goreportcard.com/badge/peter-edge/protolog-go)](http://goreportcard.com/report/peter-edge/protolog-go)
[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/go.pedge.io/protolog)
[![MIT License](http://img.shields.io/badge/License-MIT-blue.svg)](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