logging

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminService       = "adminService"
	WorkflowService    = "workflowService"
	ReplicationStreams = "replicationStreams"
	ShardManager       = "shardManager"
	ShardRouting       = "shardRouting"
)

Variables

Functions

This section is empty.

Types

type LogComponentName

type LogComponentName string

type LoggerProvider

type LoggerProvider interface {
	// Get returns a logger for the given component. If there is no custom config, the root logger will be returned.
	Get(component LogComponentName) log.Logger
	// With returns a new logger provider with the given tags added to all loggers.
	With(tags ...tag.Tag) LoggerProvider
}

LoggerProvider provides customized loggers for different components. Based on the component name, different throttling levels can be applied. Right now, any tags stored with the LoggerProvider with With() will be applied to all loggers returned by Get().

func NewLoggerProvider

func NewLoggerProvider(root log.Logger, config config.ConfigProvider) LoggerProvider

Jump to

Keyboard shortcuts

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