log

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

shared logic between stdlog, zerolog, customlog

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup[T any](key string, err error, parser func(s string) (T, error))

Lookup is the default log hook for the 'Lookup' group of functions. See the package README for details on other logging options (disabling, zap, zerolog, etc).

func Must

func Must[T any](key string, err error, parser func(s string) (T, error))

Must is the default log hook for the 'Lookup' group of functions, using the log package in the stdlib. See the package README for details on other logging options (disabling, zap, zerolog, etc).

func Or

func Or[T any](key string, err error, parser func(s string) (T, error), backup T)

Or is the default log hook for the 'Lookup' group of functions, using the log package in the stdlib.See the package README for details on other logging options (disabling, zap, zerolog, etc).

Types

This section is empty.

Jump to

Keyboard shortcuts

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