trunk

package module
v0.0.0-...-6b5434e Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

README

Trunk

Trunk is a primitive logging package for Golang.

Hex.pm Go Report Card

Documentation

You can view documentation via Godoc.

License

Trunk is licensed under Apache-2.0.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LoggerDebug, LoggerErr, LoggerFatal, LoggerInfo, LoggerSuccess, LoggerWarn *log.Logger
	LevelSuccess, LevelInfo, LevelDebug, LevelWarn, LevelErr, LevelFatal       = 0, 1, 2, 3, 4, 5
)

Functions

func LogDebug

func LogDebug(message string, vals ...interface{})

LogDebug will log a message as debug

func LogErr

func LogErr(message string, vals ...interface{})

LogErr will log a message at an "error" level

func LogFatal

func LogFatal(message string, vals ...interface{})

LogFatal will log a message as fatal and exit

func LogInfo

func LogInfo(message string, vals ...interface{})

LogInfo will log a message at an "info" level

func LogLevel

func LogLevel(level int, message string, vals ...interface{})

LogLevel will log using a specific level our message and provided values

func LogSuccess

func LogSuccess(message string, vals ...interface{})

LogSuccess will log a successful action message at an "info" level

func LogWarn

func LogWarn(message string, vals ...interface{})

LogWarn will log a warning message at an "info" level

Types

This section is empty.

Jump to

Keyboard shortcuts

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