Documentation ¶
Index ¶
- func ConfigureLogging(mode LogMode)
- func ConfigureTestLogging(t tTesting)
- func ContextWithNodeIDLogger(ctx context.Context, nodeID string) context.Context
- func LogBufferedLogs(writer io.Writer)
- func LogStream(ctx context.Context, r io.Reader)
- func ToSliceStringer[T any](ts []T, f func(t T) string) []fmt.Stringer
- func ToStringer[T any](t T, f func(t T) string) fmt.Stringer
- type LogMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶
func ConfigureLogging(mode LogMode)
func ConfigureTestLogging ¶
func ConfigureTestLogging(t tTesting)
ConfigureTestLogging allows logs to be associated with individual tests
func ContextWithNodeIDLogger ¶
ContextWithNodeIDLogger will return a context with nodeID is added to the logging context.
func LogBufferedLogs ¶
LogBufferedLogs will log any log messages written from before logging was configured to the given writer. If writer is nil, then the default logging will be used instead. This function will do nothing once the buffer has been outputted.
func ToSliceStringer ¶ added in v0.3.24
Types ¶
Click to show internal directories.
Click to hide internal directories.