mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
dlog update
This commit is contained in:
parent
8945cb1b90
commit
8200616655
4 changed files with 8 additions and 7 deletions
7
vendor/github.com/jedisct1/dlog/dlog.go
generated
vendored
7
vendor/github.com/jedisct1/dlog/dlog.go
generated
vendored
|
@ -150,9 +150,10 @@ func Init(appName string, logLevel Severity, syslogFacility string) error {
|
|||
}
|
||||
_globals.appName = appName
|
||||
_globals.syslogFacility = syslogFacility
|
||||
_globals.useSyslog = flag.Bool("syslog", false, "Send logs to the local system logger (Eventlog on Windows, syslog on Unix)")
|
||||
_globals.fileName = flag.String("logfile", "", "Write logs to file")
|
||||
flag.Var(&_globals.logLevel, "loglevel", fmt.Sprintf("Log level (%d-%d)", SeverityDebug, SeverityFatal))
|
||||
_globals.useSyslog = flag.Bool("syslog", false, "Send application logs to the local system logger (Eventlog on Windows, syslog on Unix)")
|
||||
_globals.fileName = flag.String("logfile", "", "Write application logs to file")
|
||||
_globals.truncateLogFile = flag.Bool("logfile-truncate", false, "Truncate the application log file; keep only data from the most recent application launch")
|
||||
flag.Var(&_globals.logLevel, "loglevel", fmt.Sprintf("Application log level (%d-%d)", SeverityDebug, SeverityFatal))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue