logger

package
v0.0.0-...-4685c53 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLabel = "logger"
)

Variables

This section is empty.

Functions

func NewWithConfig

func NewWithConfig(c Config) (Logger, error)

Types

type Config

type Config struct {
	Label_ string `hcl:"label,label" json:"label,omitempty"` // Label for the configuration
}

func (Config) Label

func (c Config) Label() string

func (Config) Name

func (c Config) Name() string

func (Config) New

func (c Config) New(ctx context.Context, provider Provider) (Task, error)

Return a new task. Label for the task can be retrieved from context

Jump to

Keyboard shortcuts

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