Documentation
¶
Index ¶
- type ContractLogger
- func (c ContractLogger) Failure(event string, err error, kv ...any)
- func (c ContractLogger) Start(event string, kv ...any)
- func (c ContractLogger) Success(event string, kv ...any)
- func (c ContractLogger) WithComponent(component string) ContractLogger
- func (c ContractLogger) WithStage(meta stagemeta.Metadata) ContractLogger
- type Entry
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractLogger ¶
type ContractLogger struct {
// contains filtered or unexported fields
}
ContractLogger emits structured bootstrap events that satisfy the Stage guard.
func NewContractLogger ¶
func NewContractLogger(log logr.Logger, component string) ContractLogger
NewContractLogger creates a logger for the given component.
func (ContractLogger) Failure ¶
func (c ContractLogger) Failure(event string, err error, kv ...any)
Failure records a failed bootstrap event.
func (ContractLogger) Start ¶
func (c ContractLogger) Start(event string, kv ...any)
Start records the beginning of a bootstrap event.
func (ContractLogger) Success ¶
func (c ContractLogger) Success(event string, kv ...any)
Success records a successful bootstrap event.
func (ContractLogger) WithComponent ¶
func (c ContractLogger) WithComponent(component string) ContractLogger
WithComponent returns a copy targeting a nested component.
func (ContractLogger) WithStage ¶
func (c ContractLogger) WithStage(meta stagemeta.Metadata) ContractLogger
WithStage attaches Stage metadata that will be appended to every event.
type Entry ¶
type Entry struct {
Kind string
Name string
Register func() error
ErrMessage string
SuccessMessage string
Fields []any
}
Entry describes a single component registration.
Click to show internal directories.
Click to hide internal directories.