You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the prefix_filter configuration is only supported for file logs. However, when a user enables this configuration, they likely expect it to apply to all log outputs, not just file logs.
Proposed Enhancement
Introduce a global prefix_filter configuration that applies to all logs. The existing prefix_filter for file logs can be retained for finer control, and it will override the global prefix_filter if specified. This approach ensures backward compatibility while making the configuration more intuitive.
Compatibility
The default value for the global prefix_filter will remain "databend_,openraft", maintaining existing behavior.
Setting the prefix_filter to an empty string will allow all log targets to be included.
Benefits
Simplifies log configuration for users by reducing the need to duplicate filters across different log types.
Retains fine-grained control for file-specific log filters when needed.
Provides a more consistent behavior for logging across the system.
Example
[log]
prefix_filter = "databend_" # new config
[log.file]
level = "DEBUG"
format = "text"
dir = "./.databend/logs_1"
prefix_filter = "databend_,openraft"
The text was updated successfully, but these errors were encountered:
Current Behavior
Currently, the
prefix_filter
configuration is only supported for file logs. However, when a user enables this configuration, they likely expect it to apply to all log outputs, not just file logs.Proposed Enhancement
Introduce a global
prefix_filter
configuration that applies to all logs. The existingprefix_filter
for file logs can be retained for finer control, and it will override the globalprefix_filter
if specified. This approach ensures backward compatibility while making the configuration more intuitive.Compatibility
prefix_filter
will remain"databend_,openraft"
, maintaining existing behavior.prefix_filter
to an empty string will allow all log targets to be included.Benefits
Example
The text was updated successfully, but these errors were encountered: