Comments (2)
hey @btd we actually started creating functions from strings, in 294ea42 we moved away from that since eval
/ new Function
tends to scare people away, and if no one's going to use it, what's the point.
Even at that I recently attempted the same thing again (this time using new Function
), just to see if we could squeeze any more performance out, and the results are negligible. Essentially, we're optimized to the point where we're on par to the building functions from strings approach, without having to frighten folk with eval.
Having said that, if you want to give your suggestion a go with pino it'd be awesome if you could prove me wrong (say if you can get another 20% that's worth creating a pino fork "pino-renegade" for people who don't mind their loggers using eval).
Closing for now, but let me know your plans, and thanks for sharing those othe loggers!
from pino.
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)
- [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 6
- Verifying logs from unit tests (again!) HOT 6
- `pino.transport.pipeline` may have lost logs HOT 10
- Docs: Pino Logging with Grafana Promtail/Loki HOT 3
- [Question] Same logger for both node and browser HOT 3
- Using pino with nextjs HOT 2
- Transport is not being waited for in lambda HOT 3
- pino assign takes only http context HOT 1
- Import error when using worker with pkg HOT 1
- Release, Tag and Changelog Entry needed for v9 Release HOT 1
- v9 release doesn't list breaking changes HOT 2
- Promise catch directly calling error log results in "Cannot read properties of undefined" exception HOT 1
- [Config] pinoWillSendConfig leads to configuration mutation HOT 4
- After building 'unable to determine transport target for "@axiomhq/pino"' due to "cjs" folder being deleted after build HOT 1
- `browser.formatters.level` does not inline attributes into message anymore 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.