cli: simplify the configuration of logging #51007
Labels
A-logging
In and around the logging infrastructure.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Today we have two flags
--log-dir
and--sql-audit-dir
that configure the main logging directory and the SQL audit log directory separately.Ideally, we want configurability per logger.
Also if we start supporting network loggers we'll want that to be configurable too.
To avoid a proliferation of flags, we should migrate away from discrete flags and into a more structured configuration format, akin to what is done already with
--store
.We need to answer the following questions:
With the status quo (bundling only possible to the same directory, i.e. no sink bundling, and no teeing) we could have:
--log-output=<channel>:<sinktype>:<parameters/path>
to configure a sink/path per logger; or conversely
--log-output=<sinktype>:<channel>:<parameters/path>
Special cases:
--store
, as currently--log-dir
/--sql-audit-dir
are specified, they would be used as defaults tooThe text was updated successfully, but these errors were encountered: