{"modulePath":"github.com/ozontech/file.d","version":"v0.88.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package debug\n\n## Types\n\n```go\ntype Config struct {\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e Tick interval for sampling logging. The first N entries with a given level and message\n\t// \u003e each tick. If more Entries with the same level and message are seen during\n\t// \u003e the same interval, every Mth message is logged and the rest are dropped.\n\t// \u003e\n\t// \u003e If set to 0, plugin uses parent logger without sampling.\n\t// \u003e\n\t// \u003e Check the example above for more information.\n\tInterval  cfg.Duration `json:\"interval\" parse:\"duration\"` // *\n\tInterval_ time.Duration\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e Specifies the first N entries with a given level and message each tick.\n\t// \u003e\n\t// \u003e Check the example above for more information.\n\tFirst int `json:\"first\"` // *\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e Specifies entries frequency after the first N entries.\n\t// \u003e If greater than 0, every Mth message is logged and the rest are dropped.\n\t// \u003e If set to 0, every entry after the first N are dropped.\n\t// \u003e\n\t// \u003e Check the example above for more information.\n\tThereafter int `json:\"thereafter\"` // *\n\n\t// \u003e @3@4@5@6\n\t// \u003e\n\t// \u003e 'message' field content.\n\t// \u003e Use it to determine which 'debug' action has written the log.\n\tMessage string `json:\"message\" default:\"event sample\"` // *\n}\n```\n! config-params ^ config-params\n\n```go\ntype Plugin struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *Plugin) Do(event *pipeline.Event) pipeline.ActionResult\n```\n\n```go\nfunc (p *Plugin) Start(anyConfig pipeline.AnyConfig, params *pipeline.ActionPluginParams)\n```\n\n```go\nfunc (p *Plugin) Stop()\n```\n\n","path":"github.com/ozontech/file.d/plugin/action/debug","name":"debug","synopsis":"","isRedistributable":true}
