fs: convert main options to new config system

There are some flags which haven't been converted which could be
converted in the future.
This commit is contained in:
Nick Craig-Wood
2024-07-09 18:42:01 +01:00
parent c2bf300dd8
commit 4d2bc190cc
6 changed files with 726 additions and 329 deletions

View File

@ -57,6 +57,9 @@ func (logLevelChoices) Type() string {
// LogPrintPid enables process pid in log
var LogPrintPid = false
// InstallJSONLogger is a hook that --use-json-log calls
var InstallJSONLogger = func(logLevel LogLevel) {}
// LogPrint sends the text to the logger of level
var LogPrint = func(level LogLevel, text string) {
text = fmt.Sprintf("%-6s: %s", level, text)