mirror of
https://github.com/gogf/gf.git
synced 2025-04-05 11:18:50 +08:00
feat(os/glog): add default time format 2006-01-02T15:04:05.000Z07:00
(#4134)
This commit is contained in:
parent
e12768207e
commit
0eb229a887
@ -40,6 +40,7 @@ type Logger struct {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
defaultFileFormat = `{Y-m-d}.log`
|
defaultFileFormat = `{Y-m-d}.log`
|
||||||
|
defaultTimeFormat = "2006-01-02T15:04:05.000Z07:00"
|
||||||
defaultFileFlags = os.O_CREATE | os.O_WRONLY | os.O_APPEND
|
defaultFileFlags = os.O_CREATE | os.O_WRONLY | os.O_APPEND
|
||||||
defaultFilePerm = os.FileMode(0666)
|
defaultFilePerm = os.FileMode(0666)
|
||||||
defaultFileExpire = time.Minute
|
defaultFileExpire = time.Minute
|
||||||
|
@ -59,7 +59,7 @@ func DefaultConfig() Config {
|
|||||||
c := Config{
|
c := Config{
|
||||||
File: defaultFileFormat,
|
File: defaultFileFormat,
|
||||||
Flags: F_TIME_STD,
|
Flags: F_TIME_STD,
|
||||||
TimeFormat: "",
|
TimeFormat: defaultTimeFormat,
|
||||||
Level: LEVEL_ALL,
|
Level: LEVEL_ALL,
|
||||||
CtxKeys: []interface{}{},
|
CtxKeys: []interface{}{},
|
||||||
StStatus: 1,
|
StStatus: 1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user