log

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

Debug logs a message that should only be shown only in development.

func Debugf

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

func Error

func Error(args ...interface{})

Error logs a message that is a recoverable error. For unrecoverable errors, use Fatal() instead.

func Errorf

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

func Fatal

func Fatal(args ...interface{})

Fatal logs an unrecoverable error. For recoverable errors, use Error() instead.

func Fatalf

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

func Info

func Info(args ...interface{})

Info logs a normal, informative message if not in testing. For information that should not be logged in production, used Debug() instead.

func Infof

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

func Init

func Init(environment int)

Init sets the prefix depending on the environment (dev, test, or prod).

Types

This section is empty.

Jump to

Keyboard shortcuts

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