logext

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logext provides a custom log.Logger interface for debug logging.

Logging is controlled by the GOCACHE_DEBUG environment variable, set to "true" to enable debug logging.

Index

Constants

View Source
const DebugEnvVar = "GOCACHE_DEBUG"

DebugEnvVar is the name of the environment variable that controls debug logging.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(output io.Writer) *log.Logger

NewLogger returns a new logger. If the GOCACHE_DEBUG environment variable is set, it logs messages to the provided output. Otherwise, it discards all log messages.

Types

This section is empty.

Jump to

Keyboard shortcuts

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