Coder Social home page Coder Social logo

Comments (17)

XVincentX avatar XVincentX commented on May 18, 2024 1

This is the only thing that is preventing us from seriously evaluate this tool!
Looking forward!

from pino.

UnidentifiedContributor avatar UnidentifiedContributor commented on May 18, 2024 1

@davidmarkclements, just now getting back to GitHub.

It looks beautiful! I love it.

from pino.

mcollina avatar mcollina commented on May 18, 2024

We need to support this in the web framework modules too!

from pino.

mcollina avatar mcollina commented on May 18, 2024

@XVincentX, this is already possible, but probably not easy nor documented :D.

@davidmarkclements we should test this in the context of hapi-pino and pino-http. Probably we need options added there too.

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

@XVincentX got a first pass going on here https://github.com/davidmarkclements/pino-noir won't be long coming :)

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

@mcollina agreed - maybe pino-noir should be included in pino-http and hapi-pino by default and just pass a filter object through - is that your position?

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

Ok, https://github.com/davidmarkclements/pino-noir is fully working, version 0.0.1 publish to npm too

Works for top level keys and nested keys, does not yet support wildcards, we need to run benchmarks & profile but it should be quite fast since we avoid copying objects to redact nested values by piggy backing on the subsequent JSON.stringify loop

@emilyrose would love to get your feedback for pino-noir API

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

@mcollina - just to say, since all inputs are strings (or array of strings), we can obv go faster by removing closure scope and compiling a string and passing to new Function, and again apply this same thinking to _.get and _.set - however, I'd like to benchmark the diff if it's not significant enough I'd rather not use new Function

from pino.

XVincentX avatar XVincentX commented on May 18, 2024

That sounds great. Let me marinate the new things and I'll give it a try.

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

@emilyrose - I've started on wildcard functionality on the plane, it's not quite there - my time is limited next couple of days so - I'll push anyway in case you want to bring it to land (@XVincentX feel free to PR too!) - immediate steps after that are setting up an integration benchmark, we can copy the object logging benchmarks from pino, and put pino-noir in the middle to benchmark general usage, and wildcard usage

from pino.

XVincentX avatar XVincentX commented on May 18, 2024

I'd love to but I am not sure I'm the right person (time/competencies ratio) to do that!

from pino.

mcollina avatar mcollina commented on May 18, 2024

@davidmarkclements what's the status of this?

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

it needs a few hours input to get wildcard done - just need the time

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

done :)

http://npm.im/pino-noir

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

oh wait, need to add to pino readme - doing

from pino.

davidmarkclements avatar davidmarkclements commented on May 18, 2024

Oh yah this is done

from pino.

github-actions avatar github-actions commented on May 18, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from pino.

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.