logs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: BSD-3-Clause Imports: 2 Imported by: 5

Documentation

Overview

Package logs provides a simple logging abstraction geared towards command line tool logging

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

Debugf logs a formatted debugging message if debug logs are configured

func Error

func Error(msg string, err error)

Error logs an error message with an error

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs a formatted error message

func Infof

func Infof(format string, args ...interface{})

Infof logs a formatted informational message

func Init

func Init(dbg bool)

Init initializes the loggers

func IsDebug

func IsDebug() bool

IsDebug returns true if debug logging is enabled

func Panic

func Panic(msg string, err error)

Panic logs a formatted message with an error then panics

func Panicf

func Panicf(format string, args ...interface{})

Panicf logs a formatted message then panics

func Warn

func Warn(msg string)

Warn logs a warning message

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs a formatted warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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