Coder Social home page Coder Social logo

gelf-logger's People

Contributors

jame-developer avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gelf-logger's Issues

Add zap logger integration

Description

The goal of this task is to integrate our existing Go package, which acts as a GELF compatible server logger, with the zap logging library. Just like the current setup where we have integrated with zerolog and provided a writer as a MultilevelWriter, similar implementation is expected for zap logger.

Task Details

  1. Study the Zap logger: Understand the architecture of zap logger. Find out how it manages logging levels and how it writes to different output destinations.
  2. Create a Zap Writer: Model a new writer that can take the logs from zap and send it to our GELF server. This includes working out error handling and any buffering or concurrency issues.
  3. Manage Logging Levels: Just like our zerolog integration which handles multi levels, implement handling of zap logger's multi level logs in our integration.
  4. Test the Integration: Write unit test cases to validate the integration. Ensure that logs are correctly getting sent to the GELF server and that all logging levels as per zap logger's standards are handled properly.
  5. Documentation: Update the project's readme file with new updates to describe how to use the project with zap logger.
  6. We would also need to maintain the current integration with zerolog while adding this zap logger functionality.

Deliverables

  • New Zap logger integration with GELF server log package.
  • Unit tests validating the correct behavior of new zap logger integration.
  • Updated readme describing the use of new zap logger integration.

Definition of Done

  • The task would be considered done when the zap logger can successfully redirect logs of all levels to the GELF server, without impacting the current zerolog integration. All new and modified functions should have unit tests, and all tests must pass.

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.