tracelog

package
v1.11.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tracelog provides a logger for debugging and tracing This logger will not print anything, unless TRACE_LEVEL is at least 1

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggerFlags

func LoggerFlags(pf *flag.FlagSet, argToEnv map[string]string)

LoggerFlags adds to viper flags

func NewLogger

func NewLogger() logr.Logger

NewLogger returns a logger based on the trace-output/trace-file configuration

func NewStdrLogger added in v0.5.1

func NewStdrLogger() logr.Logger

NewStdrLogger returns a stdr logger

func NewZapLogger added in v0.4.0

func NewZapLogger() logr.Logger

func TraceFile added in v1.10.0

func TraceFile() string

TraceFile returns the trace-file argument, i.e. the path to the log file to use, if any.

func TraceLevel

func TraceLevel() int

TraceLevel returns the trace-level argument

func TraceOutput added in v0.5.1

func TraceOutput() string

TraceOutput returns the trace-output argument, i.e. the chosen trace format

Types

This section is empty.

Jump to

Keyboard shortcuts

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