logger

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// JSONLogFormat is json based logging format
	JSONLogFormat = iota
	// SyslogLogFormat is syslog based logging format
	SyslogLogFormat
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format int

Format defines the logger format

type Handler

type Handler struct {
	zerolog.Logger
}

Handler wraps zerolog.Logger to allow method definitions

func New

func New(appname string, opts Options) (*Handler, error)

New instantiates bucky logger instance

func (*Handler) AsLogrLogger added in v0.2.3

func (l *Handler) AsLogrLogger() logr.Logger

type Options

type Options struct {
	Format     Format
	DebugLevel bool
}

Options supports different custom parameters for logger

Jump to

Keyboard shortcuts

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