Documentation
¶
Index ¶
- func ErrSection(err error) fmt.Stringer
- func IntoContext(ctx context.Context, logger Logger) context.Context
- func Log(ctx context.Context, operation Operation, status Status, color *color.Color, ...)
- func Section(name string, args ...any) fmt.Stringer
- type Logger
- type Operation
- type Status
- type TLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrSection ¶
func ErrSection(err error) fmt.Stringer
func IntoContext ¶
func IntoContext(ctx context.Context, logger Logger) context.Context
Types ¶
type Logger ¶
type Logger = tlogging.Logger
func FromContext ¶
func FromContext(ctx context.Context) Logger
type Operation ¶
type Operation = tlogging.Operation
const (
Apply Operation = "APPLY"
Assert Operation = "ASSERT"
Catch Operation = "CATCH"
Cleanup Operation = "CLEANUP"
Command Operation = "CMD"
Create Operation = "CREATE"
Delete Operation = "DELETE"
Error Operation = "ERROR"
Finally Operation = "FINALLY"
Get Operation = "GET"
Internal Operation = "INTERNAL"
Patch Operation = "PATCH"
Script Operation = "SCRIPT"
Sleep Operation = "SLEEP"
Stderr Operation = "STDERR"
Stdout Operation = "STDOUT"
Try Operation = "TRY"
Update Operation = "UPDATE"
)
Click to show internal directories.
Click to hide internal directories.