Documentation ¶
Index ¶
- func FromContext(ctx context.Context) *slog.Logger
- func WithContext(ctx context.Context, logger *slog.Logger, args ...interface{}) context.Context
- type BadgerLogger
- type GormLogger
- func (g *GormLogger) Error(ctx context.Context, msg string, data ...interface{})
- func (g *GormLogger) Info(ctx context.Context, msg string, data ...interface{})
- func (g *GormLogger) LogMode(level logger.LogLevel) logger.Interface
- func (g *GormLogger) Trace(ctx context.Context, begin time.Time, ...)
- func (g *GormLogger) Warn(ctx context.Context, msg string, data ...interface{})
- type TextHandler
- type TextHandlerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadgerLogger ¶
type BadgerLogger struct{}
func (*BadgerLogger) Debugf ¶
func (b *BadgerLogger) Debugf(msg string, args ...interface{})
func (*BadgerLogger) Errorf ¶
func (b *BadgerLogger) Errorf(msg string, args ...interface{})
func (*BadgerLogger) Infof ¶
func (b *BadgerLogger) Infof(msg string, args ...interface{})
func (*BadgerLogger) Warningf ¶
func (b *BadgerLogger) Warningf(msg string, args ...interface{})
type GormLogger ¶
type GormLogger struct{}
func (*GormLogger) Error ¶
func (g *GormLogger) Error(ctx context.Context, msg string, data ...interface{})
func (*GormLogger) Info ¶
func (g *GormLogger) Info(ctx context.Context, msg string, data ...interface{})
type TextHandler ¶
func NewTextHandler ¶
func NewTextHandler( out io.Writer, opts *slog.HandlerOptions, ) *TextHandler
type TextHandlerOptions ¶
type TextHandlerOptions struct {
SlogOpts *slog.HandlerOptions
}
Click to show internal directories.
Click to hide internal directories.