Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// > @3@4@5@6
// >
// > Tick interval for sampling logging. The first N entries with a given level and message
// > each tick. If more Entries with the same level and message are seen during
// > the same interval, every Mth message is logged and the rest are dropped.
// >
// > If set to 0, plugin uses parent logger without sampling.
// >
// > Check the example above for more information.
Interval cfg.Duration `json:"interval" parse:"duration"` // *
Interval_ time.Duration
// > @3@4@5@6
// >
// > Specifies the first N entries with a given level and message each tick.
// >
// > Check the example above for more information.
First int `json:"first"` // *
// > @3@4@5@6
// >
// > Specifies entries frequency after the first N entries.
// > If greater than 0, every Mth message is logged and the rest are dropped.
// > If set to 0, every entry after the first N are dropped.
// >
// > Check the example above for more information.
Thereafter int `json:"thereafter"` // *
// > @3@4@5@6
// >
// > 'message' field content.
// > Use it to determine which 'debug' action has written the log.
Message string `json:"message" default:"event sample"` // *
}
! config-params ^ config-params
Click to show internal directories.
Click to hide internal directories.