Documentation
¶
Index ¶
- func AsDevLogger(f any) any
- func AsSystemLogger(f any) any
- func NewDev(cfg *internal.Config) (*zap.Logger, error)
- func NewHClog(l *zap.Logger) hclog.Logger
- func NewOTELJobLogger(cfg *internal.Config, lp *log.LoggerProvider) (*zap.Logger, error)
- func NewSystem(params SystemParams) *zap.Logger
- func SystemHclog(params Params) hclog.Logger
- type Params
- type SystemParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsDevLogger ¶
func AsSystemLogger ¶
func NewOTELJobLogger ¶
func NewSystem ¶
func NewSystem(params SystemParams) *zap.Logger
func SystemHclog ¶
NOTE(jm): this will be deprecated once rolled out to each job
Types ¶
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
Click to show internal directories.
Click to hide internal directories.