Giter Site home page Giter Site logo

Logs written out of order about pino HOT 6 OPEN

AxeOfMen avatar AxeOfMen commented on August 16, 2024
Logs written out of order

from pino.

Comments (6)

mcollina avatar mcollina commented on August 16, 2024

I've tried to reproduce this, could you add a script that verifies it?
I've not seen out-of-order logs ever with pino, so this is very odd.

from pino.

AxeOfMen avatar AxeOfMen commented on August 16, 2024

My original post contains literally all of the code to reproduce it. The only thing absent is to npm i pino. It doesn't exhibit the problem on each run. A command like watch -n 0.5 node index.js will surely manifest the problem within a few runs.

I just built a project from the code I posted previously and saw the problem within 4 iterations of watch.

from pino.

mcollina avatar mcollina commented on August 16, 2024

I've watched it for 20 runs and got nothing.

What version of Node.js / Operating System are you using?

from pino.

AxeOfMen avatar AxeOfMen commented on August 16, 2024

Interesting.
I'm using node v16.20.0 on Linux Mint 19.2 Tina

from pino.

AxeOfMen avatar AxeOfMen commented on August 16, 2024

Video:
https://github.com/pinojs/pino/assets/29270022/f1f87d4a-158c-4899-8222-2c3e6691af92

Edit: Video won't play in my browser, but I can download it and play it in VLC.

from pino.

mcollina avatar mcollina commented on August 16, 2024

I can't really help. I watched the repro for 1 minute and couldn't see a log out of order.

Given the code we have, I couldn't even see how the logs could get out of order. Both the parent and child loggers log to the same sonic boom instance, therefore the log lines are by construction in order.

You might want to try reproducing by using https://www.npmjs.com/package/sonic-boom directly. If there is a problem with out-of-order logging, it's there.

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.