kit/logger
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
..
dapr_logger.go Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings (#24) 2022-11-01 21:50:11 -07:00
dapr_logger_test.go Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings (#24) 2022-11-01 21:50:11 -07:00
logger.go Adds IsOutputLevelEnabled to allow wasm to opt-out of generating strings (#24) 2022-11-01 21:50:11 -07:00
logger_test.go replace license headers (#12) 2021-12-09 12:03:02 -08:00
options.go Added to package to convert to pointers (#18) 2022-07-26 14:30:19 -04:00
options_test.go replace license headers (#12) 2021-12-09 12:03:02 -08:00