Coder Social home page Coder Social logo

elgopher / yala Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 0.0 245 KB

Tiny structured logging abstraction or facade for various logging libraries, allowing the end user to plug in the desired logging library in main.go.

License: MIT License

Go 99.80% Makefile 0.20%
logging logger logrus zap glog zerolog log context log15 fmt

yala's People

Contributors

elgopher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yala's Issues

Support older versions of Go

Is your feature request related to a problem? Please describe.
Currenty yala requires Go 1.17. But some developers use older versions. It would be nice to support Go versions starting with 1.15 (at least)

Describe the solution you'd like
Yala uses atomic.Value.CompareAndSwap() method which requires Go 1.17. Maybe this method can be ported to library itself?

Describe alternatives you've considered
Maybe use different atomic struct for storing logger inside logger.Global?

Improve logfmt fields formatting in printer package

Is your feature request related to a problem? Please describe.
printer package uses logfmt-like format when printing messages. But if key or value has invalid character (such as space) then the formatted message cannot be easily parsed.

Describe the solution you'd like
Use quotes, escape special characters? To be discussed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.