We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2006-01-02T15:04:05.000Z07:00
1 parent e127682 commit 0eb229aCopy full SHA for 0eb229a
os/glog/glog_logger.go
@@ -40,6 +40,7 @@ type Logger struct {
40
41
const (
42
defaultFileFormat = `{Y-m-d}.log`
43
+ defaultTimeFormat = "2006-01-02T15:04:05.000Z07:00"
44
defaultFileFlags = os.O_CREATE | os.O_WRONLY | os.O_APPEND
45
defaultFilePerm = os.FileMode(0666)
46
defaultFileExpire = time.Minute
os/glog/glog_logger_config.go
@@ -59,7 +59,7 @@ func DefaultConfig() Config {
59
c := Config{
60
File: defaultFileFormat,
61
Flags: F_TIME_STD,
62
- TimeFormat: "",
+ TimeFormat: defaultTimeFormat,
63
Level: LEVEL_ALL,
64
CtxKeys: []interface{}{},
65
StStatus: 1,
0 commit comments