Coder Social home page Coder Social logo

Comments (3)

rs avatar rs commented on June 10, 2024 1

The most efficient would be to have a separate logger for those events. Note that ConsoleWriter is not meant to be used in production, you will lose of the performance benefits of this library. You could write a custom writer and parse the buffer for the type without deserializing the JSON, but it will still be quite inefficient compared to a separate logger.

from zerolog.

rs avatar rs commented on June 10, 2024

Sorry I don't understand your request

from zerolog.

ghstahl avatar ghstahl commented on June 10, 2024

I am using zerolog today to write to stdout and that gets sent to datadog.
There are certain logs events that I would like to be sent elsewhere. Not all, just ones with the type I am interested in.

So I either write a custom output based on ConsoleWriter, call it MyCustomWriter, that filters for just the ones I want and write it somewhere else (like kafka).

I was wondering if there is another way that zerolog has for me to get the full log its about to lay down.

from zerolog.

Related Issues (20)

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.