diff --git a/format.go b/format.go index fd9f3da..c89bdd5 100644 --- a/format.go +++ b/format.go @@ -356,7 +356,7 @@ func (c *console) AppendFloat(buf *bytes.Buffer, f float64) { } func (c *console) AppendTime(buf *bytes.Buffer, t time.Time) { - buf.AppendTime(t, time.Kitchen) + buf.AppendTime(t, TimeFormatConsole) } func (c *console) AppendDuration(buf *bytes.Buffer, d time.Duration) { diff --git a/logger.go b/logger.go index 10059e0..1f2c921 100644 --- a/logger.go +++ b/logger.go @@ -8,10 +8,13 @@ import ( "time" ) -// TimeFormat is the format that times will be added in. +// TimeFormatConsole is the default format for the console formatter. // -// TimeFormat defaults to unix time. -var TimeFormat = TimeFormatUnix +// TimeFormatConsole defaults to kitchen time. +var TimeFormatConsole = time.Kitchen + +// TimeFormat is the format that times will be added in. +var TimeFormat = "" // Time formats. const (