Comments (6)
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.
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.
I've watched it for 20 runs and got nothing.
What version of Node.js / Operating System are you using?
from pino.
Interesting.
I'm using node v16.20.0
on Linux Mint 19.2 Tina
from pino.
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.
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)
- `stdSerializers` cannot be avoided for Request and Response HOT 4
- How to add context data using the same pino instance HOT 6
- `level` filter not work for transports HOT 3
- Redacting still modifies original data HOT 1
- Forbid using default log levels when `useOnlyCustomLevels: true` HOT 2
- pino transport - is it worth using a transport in another process for writing to stdout? HOT 4
- Unable to gracefully shut down transport HOT 4
- Restore and automate airtap testing HOT 3
- Package size HOT 8
- Improve generics for Logger, LoggerOptions, LogFn and WriteFn
- Error: "fn is not a function" while setting up a pino transports since v9.2.1 HOT 8
- sonic boom is not ready yet HOT 2
- Error: unable to determine transport target for "@baselime/pino-transport" HOT 1
- Typescript: turn Level typings into an enum HOT 2
- [bug] logger.`setBindings` undefined when using esm exported pino HOT 2
- Accept log level env var as UPPER or LOWER case HOT 4
- Mutation of log inputs - (un)expected? HOT 8
- Recipe for email notifications? HOT 1
- getting the following message: pinoWebpackAbsolutePath is not defined HOT 2
- Endless issues of Error: Cannot find module '....\.next\server\vendor-chunks\lib\worker.js' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pino.