config: added config logflags

This commit is contained in:
nadoo committed 2021-07-17 23:43:22 +08:00
1 parent 56277acb7d
commit 9af5ca9baf
4 files changed
+11 -3

No files matched your search

+3 -2
View File
@@ -8,8 +8,9 @@ import (
// F is the main log function.
var F = func(string, ...interface{}) {}
func init() {
stdlog.SetFlags(stdlog.Flags() | stdlog.Lshortfile)
// SetFlag sets the output flags for the logger.
func SetFlag(flag int) {
stdlog.SetFlags(flag)
}
// Debugf prints debug log.