log

package
v0.0.0-...-c5fd83d Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package log (gitlab.com/KnownTraveler/golang-cli/log) provides a uniform Logging API that has been customized for the GOLANG CLI to print messages to the user via stdout

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string)

Debug logs a message at level Debug

func Debugf

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

Debugf logs a formatted message at level Debug

func EnableDebug

func EnableDebug()

EnableDebug turns on enable logging

func EnableTrace

func EnableTrace()

EnableTrace turns on trace logging

func EnableVerbose

func EnableVerbose()

EnableVerbose turns on verbose logging

func Error

func Error(message string)

Error logs a message at level Error

func Errorf

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

Errorf logs a message at level Error

func Failure

func Failure(message string)

Failure logs a message at level Error

func Failuref

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

Failuref logs a formatted message at level Error

func Fatal

func Fatal(message string)

Fatal logs a message at level Fatal

func Fatalf

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

Fatalf logs a formatted message at level Fatal

func Panic

func Panic(message string)

Panic logs a message at level Panic

func Panicf

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

Panicf logs a formatted message at level Panic

func Print

func Print(message string)

Print logs a message at level Info

func Printf

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

Printf logs a formatted message at level Info

func Success

func Success(message string)

Success logs a message at level Info

func Successf

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

Successf logs a formatted message at level Info

func Trace

func Trace(message string)

Trace logs a message at level Trace

func Tracef

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

Tracef logs a formatted message at level Trace

func VPrint

func VPrint(message string)

VPrint logs a message at level Info when verboseEnabled is true

func VPrintf

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

VPrintf logs a message at level Info when verboseEnabled is true

func Warning

func Warning(message string)

Warning logs a message at level Warn

func Warningf

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

Warningf logs a formatted message at level Warn

Types

This section is empty.

Jump to

Keyboard shortcuts

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