diff --git a/log/value.go b/log/value.go index 2b0448e..a5dc5da 100644 --- a/log/value.go +++ b/log/value.go @@ -42,11 +42,11 @@ var ( // DefaultTimestamp is a Valuer that returns the current wallclock time, // respecting time zones, when bound. - DefaultTimestamp Valuer = func() interface{} { return time.Now().Format(time.RFC3339) } + DefaultTimestamp Valuer = func() interface{} { return time.Now().Format(time.RFC3339Nano) } // DefaultTimestampUTC is a Valuer that returns the current time in UTC // when bound. - DefaultTimestampUTC Valuer = func() interface{} { return time.Now().UTC().Format(time.RFC3339) } + DefaultTimestampUTC Valuer = func() interface{} { return time.Now().UTC().Format(time.RFC3339Nano) } ) // Caller returns a Valuer that returns a file and line from a specified depth