logger

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 197

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs error message.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs fatal message and terminates the app.

func Infof

func Infof(format string, args ...interface{})

Infof logs info message.

func Init

func Init()

Init initializes the logger.

Init must be called after flag.Parse()

There is no need in calling Init from tests.

func Panicf

func Panicf(format string, args ...interface{})

Panicf logs panic message and panics.

func StdErrorLogger

func StdErrorLogger() *log.Logger

StdErrorLogger returns standard error logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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