mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 05:37:38 +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
|
||||
}
|
||||
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -30,7 +30,7 @@ github.com/hashicorp/golang-lru/simplelru
|
|||
# github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95
|
||||
github.com/hectane/go-acl
|
||||
github.com/hectane/go-acl/api
|
||||
# github.com/jedisct1/dlog v0.0.0-20200608182644-a0fe4302a941
|
||||
# github.com/jedisct1/dlog v0.0.0-20200608205121-58b466d6e649
|
||||
github.com/jedisct1/dlog
|
||||
# github.com/jedisct1/go-clocksmith v0.0.0-20190707124905-73e087c7979c
|
||||
github.com/jedisct1/go-clocksmith
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue