package logging

Import Path
	github.com/aws/smithy-go/logging (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 13 packages

Involved Source Files logger.go
Package-Level Type Names (total 6, all are exported)
/* sort exporteds by: | */
Classification is the type of the log entry's classification name. func Logger.Logf(classification Classification, format string, v ...interface{}) func LoggerFunc.Logf(classification Classification, format string, v ...interface{}) func Nop.Logf(Classification, string, ...interface{}) func StandardLogger.Logf(classification Classification, format string, v ...interface{}) const Debug const Warn
ContextLogger is an optional interface a Logger implementation may expose that provides the ability to create context aware log entries. ( ContextLogger) WithContext(context.Context) Logger
Logger is an interface for logging entries at certain classifications. Logf is expected to support the standard fmt package "verbs". LoggerFunc Nop StandardLogger func WithContext(ctx context.Context, logger Logger) Logger func ContextLogger.WithContext(context.Context) Logger func github.com/aws/smithy-go/middleware.GetLogger(ctx context.Context) Logger func WithContext(ctx context.Context, logger Logger) Logger func github.com/aws/smithy-go/middleware.AddSetLoggerMiddleware(stack *middleware.Stack, logger Logger) error func github.com/aws/smithy-go/middleware.SetLogger(ctx context.Context, logger Logger) context.Context
LoggerFunc is a wrapper around a function to satisfy the Logger interface. Logf delegates the logging request to the wrapped function. LoggerFunc : Logger
Nop is a Logger implementation that simply does not perform any logging. Logf simply returns without performing any action Nop : Logger
StandardLogger is a Logger implementation that wraps the standard library logger, and delegates logging to it's Printf method. Logger *log.Logger Logf logs the given classification and message to the underlying logger. StandardLogger : Logger func NewStandardLogger(writer io.Writer) *StandardLogger
Package-Level Functions (total 2, both are exported)
NewStandardLogger returns a new StandardLogger
WithContext will pass the provided context to logger if it implements the ContextLogger interface and return the resulting logger. Otherwise the logger will be returned as is. As a special case if a nil logger is provided, a Nop logger will be returned to the caller.
Package-Level Constants (total 2, both are exported)
Set of standard classifications that can be used by clients and middleware
Set of standard classifications that can be used by clients and middleware