mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 08:32:40 +08:00
时间毫秒对齐
This commit is contained in:
@ -18,7 +18,7 @@ func NewLogrus() Logger {
|
||||
|
||||
logger.SetFormatter(
|
||||
&nested.Formatter{
|
||||
TimestampFormat: "2006-01-02 15:04:05.999",
|
||||
TimestampFormat: "2006-01-02 15:04:05.000",
|
||||
NoColors: false,
|
||||
CustomCallerFormatter: nestedCallerFormatter,
|
||||
})
|
||||
@ -88,7 +88,7 @@ func (l *logrusWrpper) Errorf(format string, args ...any) {
|
||||
}
|
||||
|
||||
func (l *logrusWrpper) Fatal(args ...any) {
|
||||
l.logrus.Fatal(args)
|
||||
l.logrus.Fatal(args...)
|
||||
}
|
||||
|
||||
func (l *logrusWrpper) Fatalf(format string, args ...any) {
|
||||
|
Reference in New Issue
Block a user