Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion format.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
9 changes: 6 additions & 3 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down