Closed connorsmith256 closed 1 year ago
After talking with @thomastaylor312, he agreed that renaming to log_level
for elixir logs for consistency makes sense. Does anyone disagree? He also proposed that we remain backwards-compatible for a time™️ and continue to parse the old env var name, as well as the new name (WASMCLOUD_LOG_LEVEL
)
@connorsmith256 I like the idea of using log_level
and the backwards compatible logic, just output a warning if people use the old one so that they get a notice to update
Feature or Problem
This passes
log_level
to providers. See https://github.com/wasmCloud/weld/pull/148 for contextRelated Issues
https://github.com/wasmCloud/weld/pull/148
Release Information
v0.63.0, since this is technically a breaking change. See below.
Consumer Impact
See the testing section of https://github.com/wasmCloud/weld/pull/148. Notice that after this change,
RUST_LOG
is ignored.~Note: I find it odd that the source field is called
structured_log_level
, and that Elixir logging is controlled via mix environment without structured logging enabled. I propose we make this a breaking change: rename this field to justlog_level
, proxy it through to providers, and also respect it when structured logging is not enabled~Update: we decided the following:
WASMCLOUD_STRUCTURED_LOG_LEVEL
is now deprecated, but will continue to be parsedWASMCLOUD_LOG_LEVEL
now controls logging for structured and unstructured logsTesting
Manual Verification
See testing section of https://github.com/wasmCloud/weld/pull/148