logger

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(topic string, data []byte)

func Run

func Run(config Config)

Types

type Config

type Config struct {
	Enabled            bool             `yaml:"enabled,omitempty"`
	Period             time.Duration    `yaml:"period,omitempty" default:"10s"`
	Pretty             bool             `yaml:"pretty,omitempty"`
	AdditionLogEnabled bool             `yaml:"additionLogEnabled,omitempty"`
	AdditionLogConfig  log.LoggerConfig `yaml:"additionLogConfig,omitempty"`
}

func (*Config) SetDefaults

func (c *Config) SetDefaults()

type Event

type Event struct {
	Topic string `json:"topic"`
	Data  []byte `json:"data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL