57 Commits

Author SHA1 Message Date
Matteo Collina
c26b4737c2
The serializer object should not have a prototype (#527) 2018-10-03 14:11:52 +02:00
Nathan Woltman
4b5db2756c Convert -Infinity to null (#520) 2018-09-24 23:57:47 +02:00
Matteo Collina
aa0bd756fa
Convert NaN and Infinity to null. (#519) 2018-09-24 17:33:08 +02:00
Matteo Collina
faacff3510
Do not override opts if the destination is a string (#513)
Fixes #512.
2018-09-03 14:33:29 +02:00
Nathan Woltman
c4fb9e1f27 Pass props from error objects to pino-pretty (#511) 2018-09-03 08:44:55 +02:00
Matteo Collina
8cc416bf99
Correctly assemble the message when errors are present (#501)
Fixes #500
2018-08-24 13:31:43 +02:00
Gyula Szalai
34692e97a0 Change pino.final docs and tests as requested 2018-08-21 16:00:16 +02:00
Gyula Szalai
fb54a088c2 Use const instead of var in tools.js 2018-08-21 14:25:28 +02:00
Gyula Szalai
b2f6500b23 Modify pino.final to handle calls without a handler 2018-08-21 12:53:34 +02:00
Matteo Collina
7509504ff5
Protect from hacks (#493)
* Do not use SonicBoom if stdout has been tampered. Refactoring.

* docs

* moar docs
2018-08-19 18:22:13 +02:00
Matteo Collina
dd1d42ad82
Do not use SonicBoom for stdout on Lambda (#489) 2018-08-17 12:39:55 +02:00
Matteo Collina
930b0a4cf7
Forward to pretty an error object passed as first arg (#486)
Fixes https://github.com/pinojs/pino-pretty/issues/23
Fixes https://github.com/pinojs/pino-pretty/issues/24
2018-08-14 11:41:59 +02:00
Matteo Collina
1f68f372b8
Fix prettyPrint child data (#485)
Fixes https://github.com/pinojs/pino/issues/484
2018-08-13 12:19:27 +02:00
Matteo Collina
90be486228
Do not crash on dateformat. (#476) 2018-08-08 16:52:27 +02:00
Matteo Collina
be1161f4fc
More fixes to pino-pretty, now it applies serializers as expected (#475) 2018-08-08 15:17:02 +02:00
Matteo Collina
2d729cbdd5 Support redaction in pretty print 2018-08-08 14:31:17 +02:00
Matteo Collina
49c1b8183d Support serializers in pretty 2018-08-08 14:31:17 +02:00
Matteo Collina
8206a3d3f2
Support automatic destination with string. (#472) 2018-08-07 09:09:41 +02:00
Matteo Collina
d5f1ceffc9
Removed safe option (#470)
* Removed safe option

* Moved stringify from pino.js to lib/tools.js
2018-08-06 14:44:11 +02:00
David Mark Clements
c20ce268e8
Merge pull request #469 from pinojs/update-from-master
Update from master
2018-08-05 19:11:16 +02:00
David Mark Clements
0df047fad1 inline asJson (#467)
* inline asJson

* stringify boolean and number
2018-08-05 17:31:29 +02:00
Matteo Collina
c67fd1a63f Merge branch 'master' into update-from-master 2018-08-05 13:08:49 +02:00
Matteo Collina
e7f9471a13 Improve performance of depth benchmark by 20% 2018-08-02 23:03:10 +02:00
davidmarkclements
d4b41cebb4 pino.final 2018-07-18 15:59:17 +02:00
davidmarkclements
164120042c custom levels - closes #446 2018-07-14 00:46:58 +02:00
davidmarkclements
e76946a801 100% coverage 2018-07-08 20:39:42 +02:00
davidmarkclements
3c21d18fba tests: test param lambdas, destructure t, switch to end always, tweaks 2018-06-15 17:53:15 +02:00
davidmarkclements
2f94995541 final syntax tweaks 2018-06-12 19:37:28 +02:00
davidmarkclements
8f87bf5447 reduce code and further optimize LOG 2018-06-12 16:51:25 +02:00
davidmarkclements
ff31f4ed33 all undocumented state now private as symbol keys 2018-06-11 22:02:55 +02:00
davidmarkclements
cd95b7df3a privatize serializer state 2018-06-11 21:22:22 +02:00
davidmarkclements
97d5986d50 optimally clean entry point 2018-06-11 20:46:39 +02:00
davidmarkclements
5b86be0bbf privatize undocumented but non-underscore prefixed methods 2018-06-11 17:53:08 +02:00
davidmarkclements
bf2fb1cded copy func no longer needed 2018-06-11 17:45:53 +02:00
davidmarkclements
94ae3f8f45 more syntax polish & remove unnecessary prototype logger methods 2018-06-11 17:45:03 +02:00
davidmarkclements
80cd6d092c mappings 2018-06-11 17:23:13 +02:00
davidmarkclements
d29fa7e482 no underscore prefixed properties, private state and methods using symbols 2018-06-11 17:00:43 +02:00
davidmarkclements
e6248537ab more functional style for setup 2018-06-08 13:19:33 +02:00
davidmarkclements
66647d6bfd reduce noise in entry point 2018-06-08 13:14:56 +02:00
James Sumners
896625df52
Skip writing log when prettifier says to (#407) 2018-05-01 19:15:49 -04:00
Matteo Collina
6957ec412b
Use sonic-boom (#394)
* Use sonic-boom

* Default to sonic boom when logging to stdout

* Updated benchmarks

* Restored perf regression.

* Added API.md and addressed nits

* doc nits.

* doc nits

* increase timeouts

* increased timeouts

* Increased more timeouts

* doc nits
2018-04-20 12:08:20 +02:00
James Sumners
145e724a4e
CLI revamp (#386)
* Issue #382, pretty print error with null stack (#383)

* fix issue #382 pretty print error with null stack

* prints stack: "null" when error is a property

* errors with a null stack, #382

* Bumped v4.15.4.

* added lastTime meta parameter (#385)

* Bumped v4.16.0.

* Remove CLI and add robust prettifier support

* Use required prettifier directly and tweak documentation

* Address documentation concerns

* Remove chalk

* Add bin with deprecation notice

* Add URL to deprecation notice

* deprecated => removed

* Move split2 to dev dependencies

* Move asMetaWrapper into Pino and update pretty docs
2018-04-13 08:11:40 -04:00
James Sumners
42286f05a5
Refactor to use pino-std-serializers 2018-02-22 18:14:49 -05:00
Rauno Viskus
74d676cb44 remove _baseLog 2017-09-02 22:36:55 +03:00
Rauno Viskus
ab689262d6 make baseLog configurable 2017-09-02 22:36:55 +03:00
Matteo Collina
c14a0ef1ca Replace that with self in applyOptions. 2017-07-11 15:51:54 +01:00
Matteo Collina
df540c21e5 Faster child() implementation. 2017-07-11 14:01:34 +02:00
Matteo Collina
09d599090d Do not cause problems to turbofan (#260) 2017-06-27 10:31:32 +02:00
James Sumners
0a3f5c0cab Re-add slowtime option with deprecation notice 2017-04-29 09:09:24 -04:00
James Sumners
d6c33b0a99 Implement pluggable time functions 2017-04-28 21:17:52 -04:00