logging

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package logging initializes the root logger and provides some helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(verbosity *int)

Init sets verbosity based on flag or environment. Defaults to 1 if neither is set. Sets the flag to actual setting.

func Log

func Log() logr.Logger

Log returns the root logger.

func LogWriter added in v0.1.1

func LogWriter() io.Writer

LogWriter returns the destination for the root logger, so other logs can be directed to it.

func SetVerbose added in v0.7.4

func SetVerbose(level int)

SetVerbose sets the logging verbosity for the entire process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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