logutil

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string) error

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

func Errorf

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

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