utils

package
v0.0.0-...-a074a60 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package utils is used for functions that are used in multiple locations

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Functions

func LogErrorDefaultFormat

func LogErrorDefaultFormat(packageName, callerName string, err error, action string)

LogErrorDefaultFormat is used to print errors in a uniform way

func LogFatalDefaultFormat

func LogFatalDefaultFormat(packageName, callerName string, err error, action string)

LogFatalDefaultFormat is used to print errors in a uniform way, and exit with a Panic

func LogPanicDefaultFormat

func LogPanicDefaultFormat(packageName, callerName string, err error, action string)

LogPanicDefaultFormat is used to print errors in a uniform way, and exit with a Panic

func NewLogger

func NewLogger(lvl log.Level) *log.Logger

NewLogger follows this stack overflow post: https://stackoverflow.com/a/52923899/15410622

Types

This section is empty.

Jump to

Keyboard shortcuts

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