mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
chore: refactor logx file time format (#4335)
This commit is contained in:
parent
075817a8dd
commit
896e1a2abb
@ -856,6 +856,7 @@ func testSetLevelTwiceWithMode(t *testing.T, mode string, w *mockWriter) {
|
|||||||
Encoding: plainEncoding,
|
Encoding: plainEncoding,
|
||||||
Stat: false,
|
Stat: false,
|
||||||
TimeFormat: time.RFC3339,
|
TimeFormat: time.RFC3339,
|
||||||
|
FileTimeFormat: time.DateTime,
|
||||||
})
|
})
|
||||||
SetUp(LogConf{
|
SetUp(LogConf{
|
||||||
Mode: mode,
|
Mode: mode,
|
||||||
|
@ -30,6 +30,7 @@ const (
|
|||||||
var (
|
var (
|
||||||
// ErrLogFileClosed is an error that indicates the log file is already closed.
|
// ErrLogFileClosed is an error that indicates the log file is already closed.
|
||||||
ErrLogFileClosed = errors.New("error: log file closed")
|
ErrLogFileClosed = errors.New("error: log file closed")
|
||||||
|
|
||||||
fileTimeFormat = time.RFC3339
|
fileTimeFormat = time.RFC3339
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user