zap-ltsv
A Labeled Tab-separated Values (LTSV) encoder for uber-go/zap: Fast, structured, leveled logging in Go..
Installation
go get -u github.com/hnakamur/zap-ltsv/...
Examples
See examples in godoc
LTSV encoder for github.com/uber-go/zap
Home Page: https://godoc.org/github.com/hnakamur/zap-ltsv
License: MIT License
A Labeled Tab-separated Values (LTSV) encoder for uber-go/zap: Fast, structured, leveled logging in Go..
go get -u github.com/hnakamur/zap-ltsv/...
See examples in godoc
Currently I put the original copyright holder in the copyright notice since a lot of code is copied from the original source code uber-go/zap: Fast, structured, leveled logging in Go..
Contact the original author to ask this is ok or not.
And if not, ask what is the right way .
This package borrows a lot of code from the original package uber-go/zap: Fast, structured, leveled logging in Go..
If the LTSV encoder becomes a part of the original package and common functions are moved to the separate internal package, the code duplication can be avoided.
However the original author may not want to maintain the LTSV encoder which they probably does not use.
https://travis-ci.org/hnakamur/zap-ltsv/jobs/196078900
Checking lint...
ltsv_encoder.go:304:6: type name will be used as ltsv.LTSVOption by other packages, and that stutters; consider calling this Option
ltsv_encoder.go:316:6: func name will be used as ltsv.LTSVTimeFormat by other packages, and that stutters; consider calling this TimeFormat
ltsv_encoder.go:323:6: func name will be used as ltsv.LTSVNoTime by other packages, and that stutters; consider calling this NoTime
ltsv_encoder.go:328:6: func name will be used as ltsv.LTSVTimeLabel by other packages, and that stutters; consider calling this TimeLabel
ltsv_encoder.go:335:6: func name will be used as ltsv.LTSVLevelLabel by other packages, and that stutters; consider calling this LevelLabel
ltsv_encoder.go:342:6: func name will be used as ltsv.LTSVNoLevel by other packages, and that stutters; consider calling this NoLevel
ltsv_encoder.go:347:6: func name will be used as ltsv.LTSVMessageLabel by other packages, and that stutters; consider calling this MessageLabel
ltsv_encoder.go:354:6: func name will be used as ltsv.LTSVReplacer by other packages, and that stutters; consider calling this Replacer
Two concerns.
NoTime
will collide with NoTime
for the JSON encoder.Replacer
interface, so we can't rename LTSVReplacer
to Replacer
.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.