adapters

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewZerologAdapter

func NewZerologAdapter(logger zerolog.Logger) *Logger

NewZerologAdapter accepts a zerolog.Logger as input and returns a new custom fastgql logging facade as output.

func (Logger) Debug

func (l Logger) Debug(msg string, args ...interface{})

func (Logger) Error

func (l Logger) Error(msg string, args ...interface{})

func (Logger) Info

func (l Logger) Info(msg string, args ...interface{})

func (Logger) Trace

func (l Logger) Trace(msg string, args ...interface{})

func (Logger) Warn

func (l Logger) Warn(msg string, args ...interface{})

type Slog added in v0.3.1

type Slog struct {
	// contains filtered or unexported fields
}

func NewSlogAdapter added in v0.3.1

func NewSlogAdapter(logger *slog.Logger) *Slog

NewSlogAdapter accepts a slog.Logger as input and returns a new custom fastgql logging facade as output.

func (Slog) Debug added in v0.3.1

func (l Slog) Debug(msg string, args ...interface{})

func (Slog) Error added in v0.3.1

func (l Slog) Error(msg string, args ...interface{})

func (Slog) Info added in v0.3.1

func (l Slog) Info(msg string, args ...interface{})

func (Slog) Trace added in v0.3.1

func (l Slog) Trace(msg string, args ...interface{})

func (Slog) Warn added in v0.3.1

func (l Slog) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL