log

package
v0.19.921 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsDevLogger

func AsDevLogger(f any) any

func AsSystemLogger

func AsSystemLogger(f any) any

func NewDev

func NewDev(cfg *internal.Config) (*zap.Logger, error)

func NewHClog

func NewHClog(l *zap.Logger) hclog.Logger

func NewOTELJobLogger

func NewOTELJobLogger(cfg *internal.Config, lp *log.LoggerProvider) (*zap.Logger, error)

func NewSystem

func NewSystem(params SystemParams) *zap.Logger

func SystemHclog

func SystemHclog(params Params) hclog.Logger

NOTE(jm): this will be deprecated once rolled out to each job

Types

type Params

type Params struct {
	fx.In

	L *zap.Logger `name:"system"`
}

type SystemParams

type SystemParams struct {
	fx.In

	Cfg      *internal.Config
	LP       *log.LoggerProvider `name:"system"`
	Settings *settings.Settings
}

the system logger is used to log all things that should not be sent to our API via OTEL

Jump to

Keyboard shortcuts

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