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)
- Question: CPU usage overhead vs console.log HOT 10
- pino/file logs do not get populated to docker container via mounted volume until the app closes HOT 2
- browser: implement `log` function for the `formatters` option HOT 1
- Simple log file rotation HOT 2
- Request: mixed sync/async transports HOT 5
- transport for file does not work in middleware. HOT 2
- Re-add support for standard console-style parameter logging HOT 6
- transport options - either confusing variable names or I'm just still learning (free to admit it) HOT 1
- create a function to capture full log object HOT 1
- consider using toad-cache HOT 2
- Filtering of the content using transformations in the pipeline for multiple transports HOT 1
- [question] How do I create dynamic customized logfile names? HOT 3
- Inclusive language suggestion: rename default branch to "main" across Pino's repos HOT 3
- Bundling to `ESM` using `vite` HOT 1
- ESLint: Unsafe call of an `any` typed value.(@typescript-eslint/no-unsafe-call) HOT 2
- Applying regex to redact keys or value HOT 3
- Accessing log level label from transport HOT 7
- Verifying logs from unit tests (again!) HOT 6
- `pino.transport.pipeline` may have lost logs HOT 10
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.