mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
config: added config logflags
This commit is contained in:
1 parent
56277acb7d
commit
9af5ca9baf
4 files changed
+11
-3
No files matched your search
+3
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user