applog

package
v0.0.0-...-2ccd497 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Setup logr.Logger

Setup creates the logger for setup usage.

Functions

func InstallDBLogger

func InstallDBLogger(ctx context.Context, sessionProvider db.Provider) error

InstallDBLogger installs logger sink for database driver.

func NewLogger

func NewLogger(
	sessionPrefix string,
	opts ...LoggerConfigOption,
) (logr.Logger, error)

NewLogger creates a logger with database driver enabled.

Types

type LoggerConfigOption

type LoggerConfigOption interface {
	// contains filtered or unexported methods
}

LoggerConfigOption applies extra configuration to the logger config.

func LogToStderr

func LogToStderr(enabled bool) LoggerConfigOption

LogToStderr configures the logger to log to stderr.

Jump to

Keyboard shortcuts

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