Remove the SampleFieldName global
This commit is contained in:
parent
9e5c06cf0e
commit
560e8848f1
|
@ -268,7 +268,6 @@ Some settings can be changed and will by applied to all loggers:
|
||||||
* `zerolog.LevelFieldName`: Can be set to customize level field name.
|
* `zerolog.LevelFieldName`: Can be set to customize level field name.
|
||||||
* `zerolog.MessageFieldName`: Can be set to customize message field name.
|
* `zerolog.MessageFieldName`: Can be set to customize message field name.
|
||||||
* `zerolog.ErrorFieldName`: Can be set to customize `Err` field name.
|
* `zerolog.ErrorFieldName`: Can be set to customize `Err` field name.
|
||||||
* `zerolog.SampleFieldName`: Can be set to customize the field name added when sampling is enabled.
|
|
||||||
* `zerolog.TimeFieldFormat`: Can be set to customize `Time` field value formatting. If set with an empty string, times are formated as UNIX timestamp.
|
* `zerolog.TimeFieldFormat`: Can be set to customize `Time` field value formatting. If set with an empty string, times are formated as UNIX timestamp.
|
||||||
// DurationFieldUnit defines the unit for time.Duration type fields added
|
// DurationFieldUnit defines the unit for time.Duration type fields added
|
||||||
// using the Dur method.
|
// using the Dur method.
|
||||||
|
|
|
@ -16,9 +16,6 @@ var (
|
||||||
// ErrorFieldName is the field name used for error fields.
|
// ErrorFieldName is the field name used for error fields.
|
||||||
ErrorFieldName = "error"
|
ErrorFieldName = "error"
|
||||||
|
|
||||||
// SampleFieldName is the name of the field used to report sampling.
|
|
||||||
SampleFieldName = "sample"
|
|
||||||
|
|
||||||
// TimeFieldFormat defines the time format of the Time field type.
|
// TimeFieldFormat defines the time format of the Time field type.
|
||||||
// If set to an empty string, the time is formatted as an UNIX timestamp
|
// If set to an empty string, the time is formatted as an UNIX timestamp
|
||||||
// as integer.
|
// as integer.
|
||||||
|
|
Loading…
Reference in New Issue