Commit Graph

55 Commits

Author SHA1 Message Date
Paul Wells
c8871c4e1c add client observability middleware helper (#970) 2025-02-07 14:33:56 -08:00
Paul Wells
7b5c5cd3dd add GetAndSet to bitmap (#942)
* add GetAndSet to bitmap

* cleanup

* benchmark GetAndSet
2025-01-11 11:13:11 -08:00
Paul Wells
318cb1a947 update zapslog (#873) 2024-10-26 08:34:30 -07:00
Paul Wells
37cb4c8b25 add monotonic time util (#860)
* add monotonic time util

* unixmicro

* fromtime
2024-10-16 08:59:12 -07:00
Paul Wells
6e7157c500 fix logger callers (#850) 2024-10-12 23:26:06 -07:00
Paul Wells
38527a8685 fix unlikely logger call depth (#849)
* fix unlikely logger call depth

* mute test
2024-10-11 08:29:06 -07:00
Paul Wells
b2c7ca3114 add proto/time/duration slice loggers (#842) 2024-10-08 04:07:13 -07:00
Paul Wells
fbcc09c9c9 add type specializations for slice logging (#841) 2024-10-08 03:18:54 -07:00
Paul Wells
603b677f79 update agent job count type (#835)
* udpate agent job count type

* generated protobuf

* move object slice

* license

* errs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-05 05:06:43 -07:00
Paul Wells
ec3b682c05 add zap object marshaler slice helper (#836) 2024-10-04 22:05:46 -07:00
Paul Wells
0d1d47f817 fix logger value passing (#832) 2024-10-04 00:11:04 -07:00
Paul Wells
b216a9275d add unlikely logger (#829) 2024-10-02 22:29:59 -07:00
Paul Wells
1ac3b74d03 clean up unused utils (#819)
* clean up unused utils

* cleanup
2024-09-20 23:07:11 -07:00
Paul Wells
72c0789f38 allow setting min log level for logger (#705)
* allow setting min log level for logger

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 22:22:14 -07:00
Denys Smirnov
151d757a97 Expose Logger constructor for Zap (#701)
* Expose Logger constructor for Zap.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 13:27:48 +03:00
Paul Wells
e418881086 refactor pion prefix matching (#691) 2024-04-20 12:52:47 -07:00
Paul Wells
91a1cc854d lazily initialize pion loggers (#689)
* lazily initialize pion loggers

* cleanup
2024-04-18 19:00:32 -07:00
Denys Smirnov
e2c0cf8043 Support for converting Logger into slog.Handler. (#668)
This change allows to take an existing Logger and convert it into slog.Handler.

New ToSlogHandler function will check if the Logger implementation is a known one (Zap or Logr) and will convert it with package-specific functions.
2024-03-27 01:23:19 +02:00
David Zhao
da55a5e169 Update to xsync v3 (#639) 2024-03-10 13:05:29 -07:00
Paul Wells
50165a956a add departure timeout to room (#625) 2024-03-05 07:54:36 -08:00
Paul Wells
3339e807ff add caller to log output (#620)
* fix log caller

* add test for log output
2024-02-26 08:38:55 -08:00
Paul Wells
4a97b58328 reduce logger heap objects (#618)
* reduce logger heap objects

* deps
2024-02-26 05:35:35 -08:00
Paul Wells
19dc977fde reuse zap logger stderr lock (#617)
* reuse zap logger stderr lock

* typo
2024-02-25 13:10:13 -08:00
Paul Wells
50cd638fea add stack traces to error logs (#614) 2024-02-23 01:26:09 -08:00
Paul Wells
0293e1ec08 log caller (#610)
* log caller

* fix depth
2024-02-21 14:43:29 -08:00
Paul Wells
a9e0faf6f0 allow intercepting logging (#609)
* allow intercepting logging

* roll back nats
2024-02-20 20:46:29 -08:00
Paul Wells
ce67e4e290 simplify deferred logger flush (#563)
* simplify deferred logger flush

* test

* test
2024-01-03 00:23:31 -08:00
Paul Wells
e9e5fcd7d3 fix typo (#553) 2023-12-21 02:03:46 -08:00
Paul Wells
b038d892cb add deferred logger (#551) 2023-12-20 23:02:43 -08:00
David Zhao
afa0350bcd Add call depth to Pion logger (#536)
Currently all pion logs are showing a caller within the logger itself, which is incorrect
2023-12-02 10:16:55 -08:00
Paul Wells
525419ade0 truncate bytes in proto logs (#488)
* truncate bytes in proto logs

* fix
2023-10-01 19:38:23 -07:00
Raja Subramanian
0708b5a5bb Mark marshallable fields with yaml and omitempty (#477) 2023-09-19 23:54:18 +05:30
Raja Subramanian
47d330eafb Log Pion trace level logs at Debug level. (#468) 2023-09-11 21:35:09 +05:30
Paul Wells
fc1aa19ec2 add psrpc logger middleware (#461)
* add psrpc logger middleware

* missing file
2023-09-05 10:10:50 -07:00
David Zhao
f3bba12b3e Component support for logger (#436)
* Component support for logger

With the ability to dynamically update log levels per component

* support hierarchical config

* consolidate pion logger to use components
2023-08-03 11:59:04 -07:00
Raja Subramanian
caf65ebc47 Filter out a TURN log. (#440)
Most frequent error, but all of it is due to non-existent stuff.
Plus, not watched for any debugging.
2023-08-03 12:39:07 +05:30
David Zhao
f38c24c72d Skip noisy TURN log (#430) 2023-07-27 19:42:19 -07:00
David Zhao
c9e9ae555f Add license headers & NOTICE (#429)
* Add license headers & NOTICE

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 16:43:25 -07:00
Paul Wells
c108af2ebf allow annotating rather than omitting field sampler matches (#406) 2023-06-20 18:14:38 -07:00
Paul Wells
089430752e add room log sampler (#404)
* add room log sampler

* go deps

* feedback

* cleanup
2023-06-18 17:50:42 -07:00
Paul Wells
40c26a892d add structured logging for protobuf messages (#377) 2023-05-12 11:03:44 -07:00
Benjamin Pracht
db5afb1c7f Protocol support for WHIP ingress (#366)
The pion logger package was extracted from livekit-server. The err_array code is from egress.
2023-04-27 18:13:59 -07:00
David Zhao
cc52c6ef83 Allow retrieving unsampled logger for critical log lines (#304) 2023-02-17 21:48:58 -08:00
David Zhao
fa1edc35c8 Ensure we don't lose context or other logger options (#289) 2023-02-01 01:21:09 -08:00
David Zhao
9987dca3a3 Fix item sampler to avoid stacking with default sampler (#285) 2023-01-30 17:22:49 -08:00
David Zhao
5875a37d2c Added ToZap method to return the underlying Zap logger (#258) 2022-12-09 14:22:30 -08:00
David Zhao
46717d5070 Support for participant-level log sampling (#257) 2022-12-08 23:53:20 -08:00
Benjamin Pracht
9303619f01 Fix typo in logger config (#248) 2022-11-08 14:44:55 -08:00
David Zhao
8449c11069 Configurable logger sampling parameters (#243) 2022-10-27 23:34:58 -07:00
David Zhao
e3f2240801 Moved common logging functions to protocol (#118) 2022-04-19 23:58:34 -07:00