add comment

This commit is contained in:
Wenkai Yin 2016-03-16 15:58:08 +08:00
parent 0471e6ca3d
commit 5d9b4185b8

View File

@ -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