callback

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level log.Level, callback LogFunc) log.Logger

New creates a new logger that allows using a custom callback function that will be invoked every time a log message is created.

Types

type LogFunc

type LogFunc func(level log.Level, fields log.Fields, log string)

Jump to

Keyboard shortcuts

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