lib

package
v0.0.0-...-59c1118 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(level string) *logrus.Logger

GetLogger returns the default logger with the given log level

func TimeIt

func TimeIt(logger logrus.FieldLogger) func()

TimeIt is used for timing a function call. Usage: defer TimeIt(time.Now(), "function name or label")

Types

This section is empty.

Jump to

Keyboard shortcuts

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