log

package
v0.18.6 Latest Latest
Warning

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

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

Documentation

Overview

Package log provides dual-use logging between vitess's vt/log package and viper's jww log.

Index

Constants

This section is empty.

Variables

View Source
var (

	// TRACE logs to viper's TRACE level, and nothing to vitess logs.
	TRACE = jwwlog(jww.TRACE, nil)
	// DEBUG logs to viper's DEBUG level, and nothing to vitess logs.
	DEBUG = jwwlog(jww.DEBUG, nil)
	// INFO logs to viper and vitess at INFO levels.
	INFO = jwwlog(jww.INFO, log.Infof)
	// WARN logs to viper and vitess at WARN/WARNING levels.
	WARN = jwwlog(jww.WARN, log.Warningf)
	// ERROR logs to viper and vitess at ERROR levels.
	ERROR = jwwlog(jww.ERROR, log.Errorf)
	// CRITICAL logs to viper at CRITICAL level, and then fatally logs to
	// vitess, exiting the process.
	CRITICAL = jwwlog(jww.CRITICAL, log.Fatalf)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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