New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace bunyan with pino #91
Replace bunyan with pino #91
Conversation
Errors trigger flushSync in logger but it's not supported in combination with prettifier
Remove some options that have defaults.
Nice, |
What about |
From 11 version according to MDN |
OK, let’s fix CI and I am ready to merge |
This reverts commit b6fb451. Though it looks complicated, it seems to be the best solution. flatMap and flat are supported only from node 11.
Added post-mortem about this case to commit message |
Do you have an idea of how we can simplify logger options? Right now we have Maybe we should keep only |
Sounds good, considering that What was the main point to have both |
Mostly historical. Do you want to remove |
Yeah, I will try to do this |
* Replace bunyan with pino with smallest interference * Replace PID in tests instead of stubbing it manually * Use pino prettifier API for HumanFormatter * Introduce hack to disable pino prettifier warning Errors trigger flushSync in logger but it's not supported in combination with prettifier * Increase test coverage * Simplify reporter creation * Remove useless TODO * Fix formatting * Clarify why I return undefined to suppress pino warning * Remove useless comments * Add eslint exception for human-formatter * Fix merge error * Add example of custom logger * Enhance custom logger example * Simplify custom logger example Remove some options that have defaults. * Fix complicated code in human-formatter * Fix old typo in in human-formatter * Revert "Fix complicated code in human-formatter" This reverts commit b6fb451. Though it looks complicated, it seems to be the best solution. flatMap and flat are supported only from node 11. Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>
* Replace bunyan with pino with smallest interference * Replace PID in tests instead of stubbing it manually * Use pino prettifier API for HumanFormatter * Introduce hack to disable pino prettifier warning Errors trigger flushSync in logger but it's not supported in combination with prettifier * Increase test coverage * Simplify reporter creation * Remove useless TODO * Fix formatting * Clarify why I return undefined to suppress pino warning * Remove useless comments * Add eslint exception for human-formatter * Fix merge error * Add example of custom logger * Enhance custom logger example * Simplify custom logger example Remove some options that have defaults. * Fix complicated code in human-formatter * Fix old typo in in human-formatter * Revert "Fix complicated code in human-formatter" This reverts commit b6fb451. Though it looks complicated, it seems to be the best solution. flatMap and flat are supported only from node 11. Co-authored-by: Andrey Sitnik <andrey@sitnik.ru>
No description provided.