Documentation ¶ Index ¶ func ToContext(ctx context.Context, logger *Logger) context.Context type Logger func FromContext(ctx context.Context) (*Logger, error) func New(appName string) (Logger, error) func (l *Logger) Close() func (l *Logger) Debug(format string, args ...any) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToContext ¶ func ToContext(ctx context.Context, logger *Logger) context.Context Types ¶ type Logger ¶ type Logger struct { // contains filtered or unexported fields } func FromContext ¶ func FromContext(ctx context.Context) (*Logger, error) func New ¶ func New(appName string) (Logger, error) func (*Logger) Close ¶ func (l *Logger) Close() func (*Logger) Debug ¶ func (l *Logger) Debug(format string, args ...any) Source Files ¶ View all Source files logger.go Click to show internal directories. Click to hide internal directories.