logger

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logger handles the logging

Index

Constants

This section is empty.

Variables

View Source
var (

	// VerboseLogging for verbose logging
	VerboseLogging bool
	// QuietLogging shows only errors
	QuietLogging bool
	// NoLogging shows only fatal errors
	NoLogging bool
	// LogFile sets a log file
	LogFile string
)

Functions

func CleanHTTPIP

func CleanHTTPIP(s string) string

CleanHTTPIP returns a human-readable IP for the logging interface when starting services. It translates [::]:<port> to "localhost:<port>"

func CleanIP

func CleanIP(s string) string

CleanIP returns a human-readable IP for the logging interface when starting services. It translates [::]:<port> to "0.0.0.0:<port>"

func Log

func Log() *logrus.Logger

Log returns the logger instance

func PrettyPrint

func PrettyPrint(i interface{})

PrettyPrint for debugging

Types

This section is empty.

Jump to

Keyboard shortcuts

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