add options for console tracing EnvFilter details

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-07 06:02:33 +00:00
parent da984d49cf
commit d921b82376
3 changed files with 28 additions and 2 deletions

View file

@ -698,6 +698,19 @@ pub struct Config {
#[serde(default = "default_log_span_events")]
pub log_span_events: String,
/// configures whether CONDUWUIT_LOG EnvFilter matches values using regular
/// expressions. See the tracing_subscriber documentation on Directives.
///
/// default: true
#[serde(default = "true_fn")]
pub log_filter_regex: bool,
/// toggles the display of ThreadId in tracing log output
///
/// default: false
#[serde(default)]
pub log_thread_ids: bool,
/// OpenID token expiration/TTL in seconds
///
/// These are the OpenID tokens that are primarily used for Matrix account