logutil

package
v1.0.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error added in v1.0.0

func Error(msg string) error

Error logs the error message and returns an error with the same message

func Errorf added in v1.0.0

func Errorf(msg string, v ...interface{}) error

Errorf formats and logs the error message and returns an error with the same message

func Initialize

func Initialize(config types.Config)

Initialize initialises the logger from a configuration

func Mock added in v1.0.0

func Mock() *memory.Handler

Mock substitues the handler with an in-memory handler which can be used for testing purposes

Types

This section is empty.

Jump to

Keyboard shortcuts

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