build

package
v1.11.26 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *log.LoggerConfig) log.Logger

New creates and returns a Logger instance from LoggerConfig

func NewLoggerConfig

func NewLoggerConfig() *log.LoggerConfig

NewLoggerConfig returns a default LoggerConfig

func NewLoggerConfigWith added in v1.2.9

func NewLoggerConfigWith(enabled bool, backend, level string, opts ...log.Opt) *log.LoggerConfig

NewLoggerConfigWith returns a default LoggerConfig

func NewStdLoggerWithConfig added in v1.5.19

func NewStdLoggerWithConfig(config *log.LoggerConfig) log.Logger

NewStdLoggerWithConfig return a stdlib `log` logger

func RegisterBuilder added in v1.3.11

func RegisterBuilder(backendName string, builderFunc log.BuilderFunc)

RegisterBuilder register a builder for your logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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