Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package logmatic
- import (
- "github.com/elastic/beats/libbeat/common"
- "github.com/elastic/beats/libbeat/common/op"
- "github.com/elastic/beats/libbeat/outputs"
- "os"
- )
- func init() {
- outputs.RegisterOutputPlugin("logmatic", New)
- }
- type console struct {
- out *os.File
- codec outputs.Codec
- }
- func New(_ common.BeatInfo, _ *common.Config, _ int) (outputs.Outputer, error) {
- c := &console{}
- return c, nil
- }
- // Implement Outputer
- func (c *console) Close() error {
- return nil
- }
- func (c *console) PublishEvent(s op.Signaler, opts outputs.Options, data outputs.Data, ) error {
- return nil
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement