logging

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package logging sets up structured logging in a uniform way, and redirects glog statements into the structured log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() (log.Logger, error)

Init returns a logger configured with common settings like timestamping and source code locations. Both the stdlib logger and glog are reconfigured to push logs into this logger.

Init must be called as early as possible in main(), before any application-specific flag parsing or logging occurs, because it mutates the contents of the flag package as well as os.Stderr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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