logger

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(template string, args ...interface{})

Debug uses fmt.Sprintf to log a templated message.

func EnableDebug

func EnableDebug() bool

EnableDebug returns true if the DEBUG level is at or above this level.

func Error

func Error(template string, args ...interface{})

Error uses fmt.Sprintf to log a templated message.

func Fatal

func Fatal(template string, args ...interface{})

Fatal uses fmt.Sprintf to log a templated message, then calls os.Exit.

func Info

func Info(template string, args ...interface{})

Info uses fmt.Sprintf to log a templated message.

func SetLevel

func SetLevel(newLevel string)

SetLevel alters the logging level.

func Warn

func Warn(template string, args ...interface{})

Warn uses fmt.Sprintf to log a templated message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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