loggersink

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegistrySingleton = Registry{
	Registry: *registry.NewRegistry("loggersink"),
}

RegistrySingleton is a global singleton

Functions

func CreateFunctionLogger

func CreateFunctionLogger(name string,
	functionConfiguration *functionconfig.Config,
	platformConfiguration *platformconfig.Config) (logger.Logger, error)

CreateFunctionLogger returns the processor logger and the function logger. For now, they are one of the same

func CreateSystemLogger

func CreateSystemLogger(name string, platformConfiguration *platformconfig.Config) (logger.Logger, error)

CreateSystemLogger returns the system loggers

Types

type Configuration

type Configuration struct {
	platformconfig.LoggerSinkWithLevel
	Name       string
	Level      logger.Level
	Attributes map[string]interface{}
}

func NewConfiguration

func NewConfiguration(name string, loggerSinkConfiguration *platformconfig.LoggerSinkWithLevel) *Configuration

type Creator

type Creator interface {

	// Create creates a logger sink instance
	Create(string, *platformconfig.LoggerSinkWithLevel) (logger.Logger, error)
}

Creator creates a logger sink instance

type Registry

type Registry struct {
	registry.Registry
}

func (*Registry) NewLoggerSink

func (r *Registry) NewLoggerSink(kind platformconfig.LoggerSinkKind,
	name string,
	loggerSinkConfiguration *platformconfig.LoggerSinkWithLevel) (logger.Logger, error)

NewLoggerSink creates a new logger sink

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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