FluffyLabs / FluffyLabs/typeberry
Logger improvements
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Follow up on #97
- [ ] Consider adding timestamps - make sure to compare performance impact. It's not a hard requirement to have timestamps, but if it doesn't affect the performance too much let's do that.
- [ ] Spawn a separate worker thread that is only responsible for logging to console/file - the workers need to synchronize access to console anyway, so it actually makes sense to make it explicit. In such case the logging to console would actually be postMessage on some channel. We need to compare the performance though.
- [ ] Format the output with colors (`Colored` transport)
- [ ] Redirect the output to a file (rotating, etc; `File` transport).
- [ ] Improve how define the level of a module - currently we need to parse the module name and extract parent modules. Instead of having a global config, we could registers the loggers in some global array and each one of them could have a separate configuration. That should be faster (measure!) but we would need to make sure we never leak loggers (i.e. create some loggers dynamically and drop them).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.