logger

package
v0.0.0-...-f4175bf Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

The logger package contains helpful functions for quickly and beautifully logging things to stdout.

Index

Constants

This section is empty.

Variables

View Source
var DebugMode bool = viper.GetBool("FALCON_DEBUG")

Functions

func LogDebugOnly

func LogDebugOnly(statement ...interface{})

Logs the given statement if debug mode is enabled.

func LogError

func LogError(format string, substitutions ...interface{})

Logs the given statement in red text to stdout, after formatting it using fmt.Sprintf and then ends the program with an exit code of 1.

func LogInfo

func LogInfo(format string, substitutions ...interface{})

Logs the given statement(s) in white text to stdout, after formatting it using fmt.Sprintf

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳