logging

package
v0.0.0-...-cf55a68 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package logging implements a gRPC glog.Logger implementation backed by a go.chromium.org/luci/common/logging Logger.

The logger can be installed by calling Install.

Index

Constants

This section is empty.

Variables

View Source
var Suppress = logging.Level(logging.Error + 1)

Suppress is a sentinel logging level that instructs the logger to suppress all non-fatal logging output. This is NOT a valid logging.Level, and should not be used as such.

Functions

func Install

func Install(base logging.Logger, level logging.Level)

Install installs a logger as the gRPC library's logger. The installation is not protected by a mutex, so this must be set somewhere that atomic access is guaranteed.

A special logging level, "Suppress", can be provided to suppress all non-fatal logging output .

gRPC V=level and error terminology translation is as follows: - V=0, ERROR (low verbosity) is logged at logging.ERROR level. - V=1, WARNING (medium verbosity) is logged at logging.WARNING level. - V=2, INFO (high verbosity) is logged at logging.DEBUG level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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