File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ func (f FieldMap) resolve(key fieldKey) string {
23
23
// JSONFormatter formats logs into parsable json
24
24
type JSONFormatter struct {
25
25
// TimestampFormat sets the format used for marshaling timestamps.
26
+ // The format to use is the same than for time.Format or time.Parse from the standard
27
+ // library.
28
+ // The standard Library already provides a set of predefined format.
26
29
TimestampFormat string
27
30
28
31
// DisableTimestamp allows disabling automatic timestamps in output
Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ type TextFormatter struct {
53
53
// the time passed since beginning of execution.
54
54
FullTimestamp bool
55
55
56
- // TimestampFormat to use for display when a full timestamp is printed
56
+ // TimestampFormat to use for display when a full timestamp is printed.
57
+ // The format to use is the same than for time.Format or time.Parse from the standard
58
+ // library.
59
+ // The standard Library already provides a set of predefined format.
57
60
TimestampFormat string
58
61
59
62
// The fields are sorted by default for a consistent output. For applications
You can’t perform that action at this time.
0 commit comments