diff --git a/log/textformatter.go b/log/textformatter.go index 1b6be5a6a..1ac177e26 100644 --- a/log/textformatter.go +++ b/log/textformatter.go @@ -55,6 +55,7 @@ func (t *TextFormatter) Format(r *Record) (b []byte, err error) { return } +// SetTimeFormat sets time format of TextFormatter if the parameter fmt is not null func (t *TextFormatter) SetTimeFormat(fmt string) { if len(fmt) != 0 { t.timeFormat = fmt