zerolog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPLogger

func HTTPLogger(logger z.Logger) fiber.Handler

Types

type GocronAdapter

type GocronAdapter struct {
	Logger z.Logger
}

func (GocronAdapter) Debug

func (g GocronAdapter) Debug(msg string, v ...any)

func (GocronAdapter) Error

func (g GocronAdapter) Error(msg string, v ...any)

func (GocronAdapter) Info

func (g GocronAdapter) Info(msg string, v ...any)

func (GocronAdapter) Println

func (g GocronAdapter) Println(msg string, v ...any)

func (GocronAdapter) Warn

func (g GocronAdapter) Warn(msg string, v ...any)

type ZerologGooseAdapter

type ZerologGooseAdapter struct {
	Logger zerolog.Logger
}

ZerologAdapter is a wrapper around zerolog.Logger to implement the goose.Logger interface

func (*ZerologGooseAdapter) Fatal

func (z *ZerologGooseAdapter) Fatal(args ...interface{})

Fatal implement the goose.Logger interface method

func (*ZerologGooseAdapter) Fatalf

func (z *ZerologGooseAdapter) Fatalf(format string, args ...interface{})

Fatalf implement the goose.Logger interface method

func (*ZerologGooseAdapter) Print

func (z *ZerologGooseAdapter) Print(args ...interface{})

Print implement the goose.Logger interface method

func (*ZerologGooseAdapter) Printf

func (z *ZerologGooseAdapter) Printf(format string, args ...interface{})

Printf implement the goose.Logger interface method

func (*ZerologGooseAdapter) Println

func (z *ZerologGooseAdapter) Println(args ...interface{})

Println implement the goose.Logger interface method

Jump to

Keyboard shortcuts

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