yellow chicks
bcf6ee0931
feature: add context log ( #21 )
...
* feature: add context log
Signed-off-by: 1046102779 <seachen@tencent.com>
* feature: add context log
Signed-off-by: 1046102779 <seachen@tencent.com>
* feature: add context log
Signed-off-by: 1046102779 <seachen@tencent.com>
* feature: add context log
Signed-off-by: 1046102779 <seachen@tencent.com>
* feature: add context log
Signed-off-by: 1046102779 <seachen@tencent.com>
Signed-off-by: 1046102779 <seachen@tencent.com>
2022-12-11 09:36:11 -08:00
Crypt Keeper
c213121f0b
Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings ( #24 )
...
* Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings
Allocation of log messages is expensive in WebAssembly. This exposes the
underlying IsLevelEnabled as IsOutputLevelEnabled. This will allow
request-scoped caching of this and help wasm filters avoid overhead
created for no reason.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
* lint
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
2022-11-01 21:50:11 -07:00
Alessandro (Ale) Segala
ca65758d45
Added SetOutput method to logger ( #25 )
...
This is particularly useful when building tests
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-10-24 14:26:43 -07:00
Alessandro (Ale) Segala
272e358ba6
Added `WithFields` to Dapr logger ( #22 )
...
Allows adding structured fields to logs, for example:
```go
log.WithFields(map[string]any{"hello": "world"}).Info("my log")
```
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
2022-09-30 11:26:01 -07:00
Dmitry Shmulevich
867d7d9f3e
replace license headers ( #12 )
...
Signed-off-by: Dmitry Shmulevich <dmitry.shmulevich@gmail.com>
2021-12-09 12:03:02 -08:00
Long Dai
decb91c8af
ci: add lint config ( #7 )
...
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-08-09 10:39:38 -04:00
Phil Kedy
6f1fbfeb04
Moved logger from dapr/dapr ( #1 )
...
* Moved logger from dapr/dapr
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Young Bu Park <youngp@microsoft.com>
Co-authored-by: Sky/敖小剑 <aoxiaojian@gmail.com>
Co-authored-by: Joni Collinge
Co-authored-by: Jigar <jigarr.gandhi@gmail.com>
Co-authored-by: Ben Wells
Co-authored-by: yellow chicks <cdh_cjx@163.com>
2021-04-10 14:50:34 -04:00