50 Commits

Author SHA1 Message Date
dev-KingMaster
ebe4ac2fef
test(browser): stabilize reportCaller tests for cross-env; drop non-object mode assertion to avoid flakiness (#2340) 2025-11-08 11:34:58 +01:00
Segev Finer
0bb3cd01b4
Add asObjectBindingsOnly, allowing write to receive only the bindings as object (#2051)
* Add asObjectBindingsOnly, allowing write to receive only the bindings as object

This allows to pass the format string and args as
is the underlying console when to keep their
special handling, for when using `write` to only
modify the default way the printing to the console
looks rather than writing to an alternate
destination entirely.

Part of #1556

* Add a test

* Add docs
2025-04-16 07:46:13 -04:00
Samuele Salvatico
51192e0e51
fix: #2053 - re-added is level enabled to browser (#2125)
* fix: re-added is level enabled to browser

* test: added as object test
2025-04-16 07:45:07 -04:00
Dániel Seres
84bbd3513f
fix: Ensure silent log level is respected with browser.transmit option (#2052) 2024-10-15 14:33:40 +02:00
Anastasiia Dragich
b5f5cbcf62
fix(browser): should respect log level with transmit (#2005)
Co-authored-by: Anastasiia Dragich <anastasiia.dragich@booking.com>
2024-07-12 14:10:44 +02:00
hollykurt
4fe8065bdb
call onChild when instanciating new child browser logger (#2001) 2024-07-11 16:29:16 +02:00
Steven Li
10bfff4a22
Fixing browser side child log issue (#960) child level can now be set at cr… (#1986)
* Fixing browser side child log issue, child level can now be set at creation time, #960

* Added test case for setting child logger level at creation time (#960)

---------

Co-authored-by: Steven Li <steve98@gmail.com>
2024-06-11 17:09:05 +02:00
Emmanuel Akinyele
8db130eba0
suppport message key in pino/browser (#1980) 2024-05-21 10:08:49 +02:00
Emmanuel Akinyele
0109b15961
use boolean flag to ensure serializers are applied once (#1976) 2024-05-15 14:52:55 +02:00
Emmanuel Akinyele
2dda26c90d
apply serializers to args once before asObject or transmit (#1971) 2024-05-13 14:25:05 +02:00
Mark S. Miller
9c39e0f8d8
fix: avoid override mistake (#1939) 2024-04-05 14:40:47 +01:00
Katelyn Kim
7f33a0ee3f
Add formatters log option (#1905) 2024-02-15 22:16:20 +01:00
Katelyn Kim
7df8840d7a
feat: add a formatters option to browser pino (#1898) 2024-02-10 10:21:27 +01:00
Tarun Chauhan
93284788b9
enable named export in browser.js (#1803) 2023-09-10 10:12:41 +02:00
ch___________j
4c779a444e
fix: replace nullish coalescing operator (#1780) 2023-08-10 13:56:14 +02:00
Nico Vogel
32b759d7ba
fix: browser respect child logger log level (#1725)
* test: add browser child level tests

* feat: child level is independent of parent logger
2023-06-29 11:57:27 +02:00
Matheus Vellone
4ede1c169e
fix: support customLevels on browser (#1707) 2023-05-04 15:00:19 +02:00
Matteo Collina
c0e11b99b2
Expose errWithCause to browser API (#1701)
Signed-off-by: Matteo Collina <hello@matteocollina.com>
2023-05-02 13:45:31 +02:00
Dan Castillo
31f7cd61f2
fix(#1347): added disabled to browser opts for logs (#1480) 2022-06-30 12:21:37 +02:00
KaKa
946f630016
refactor: deprecate child bindings apply options (#1067)
* refactor: deprecate child bindings apply options

* chore: remove todo comment

* refactor: deprecate bindings.level
2021-07-12 14:11:53 +02:00
Matteo Collina
987b924192
Make the build pass again (#962) 2021-02-09 19:10:48 +01:00
salesh
dfe518b4b6 Fix linter 2021-01-15 20:01:26 +01:00
salesh
98e31c0057 Fix for...in 2021-01-15 19:16:34 +01:00
salesh
2fd82b761f Replacing var with let/const, somewhere left var because scope, somewhere left var because for + resolved all standard issues 2021-01-13 23:52:56 +01:00
Kay Gosho
99d198c19e
Add timestamp option to browser env, closes #903 (#904)
* add timestamp option to browser env

* refactor: use epochTime instead of Date.now

* fix test summary text
2020-09-06 19:04:29 +02:00
Linus Unnebäck
6e215024bd
Use object shorthand for properties (#830) 2020-04-26 13:12:33 +02:00
Thiebaud Thomas
254d485f61 Remove log version (#623) 2020-02-17 10:40:00 +01:00
Matteo Collina
c5c996d240
Updated to standard v13 (#683) 2019-07-17 15:09:01 +02:00
Dolan Halbrook
d9dddbbf69
Review feedback. 2019-05-24 12:52:54 -07:00
Dolan Halbrook
c73b8895bd
Make browser.js es5 compiliant 2019-05-24 12:39:25 -07:00
David Mark Clements
788fedf692 legacy mobile safari globalThis fallback 2019-05-16 17:22:55 +02:00
David Mark Clements
8f9ff4f170 no symbols in browser 2019-05-11 19:20:08 +02:00
David Mark Clements
2b3bbf1ac6 globalThis 2019-05-11 19:19:42 +02:00
David Mark Clements
6ee01e1855 add wrapErrorSerializer to browser pino 2019-04-24 16:37:26 +02:00
Marcin Rataj
7d2ba1931e Add pino-browser support for hapi-pino (#612)
This changes browser.js to expose symbols and serializer methods used
by hapi-pino.

This is extremely niche use case, but some people want to run Hapi.js
(HTTP server) in WebExtension context using chrome.sockets APIs.

Ref. https://github.com/ipfs-shipyard/ipfs-companion/issues/664
2019-03-20 09:18:37 +00:00
Justin Helmer
3d53bd50ef fix: browser-transmit messages array when asObject is true 2019-01-21 08:22:58 -08:00
George Haidar
83233c6911 fix: retain logger bindings after transmitting logEvents 2019-01-16 14:42:36 +00:00
Matteo Collina
d3e3aff74a
Updated standard to v12. (#506) 2018-08-29 16:24:38 +02:00
davidmarkclements
8f87bf5447 reduce code and further optimize LOG 2018-06-12 16:51:25 +02:00
slavasitnikov
1ab4bebe49 Fix set level in browser logger (#424)
* Add level and levelVal propreties to browser logger

* Fix set level
2018-05-30 06:54:53 +02:00
slavasitnikov
3b1645eb61 Add level and levelVal propreties to browser logger (#419) 2018-05-27 22:55:27 +02:00
Matteo Collina
7a25e25483 Updated dependencies 2018-03-14 21:25:36 +01:00
Sara Gudeman
f14647b1c0 IE 10 invalid calling object binding fix 2017-10-30 17:26:29 -07:00
davidmarkclements
524bd65c43 browser-transmit-timestamp 2017-10-24 16:00:31 +01:00
davidmarkclements
bdc21f3a67 browser trasmit API 2017-10-20 12:44:16 +01:00
davidmarkclements
02e59e1e60 browser serializers, closes #219 2017-10-18 10:03:33 +01:00
davidmarkclements
a0a51009ff support silent level in browser closes #266 2017-10-17 18:45:03 +01:00
davidmarkclements
3242966ae6 fixes #220 2017-03-22 21:50:57 +01:00
davidmarkclements
4457260800 closes #7 2017-03-22 14:43:55 +01:00
davidmarkclements
b914c53d0d minimal browser implementation 2016-10-25 16:28:52 +02:00