logging

package
v0.0.0-...-c20d51c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package logging provides a custom logging implementation for webborer.

Index

Constants

View Source
const (
	LogDebug = iota
	LogInfo
	LogWarning
	LogError
	LogFatal
)

Variables

View Source
var LogLevelStrings = [...]string{
	"DEBUG",
	"INFO",
	"WARNING",
	"ERROR",
	"FATAL",
}
View Source
var Warnf = Warningf

Functions

func Debugf

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

Log at Debug level

func Errorf

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

Log at Error level

func Fatalf

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

Log at Fatal level

func Infof

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

Log at Info level

func Logf

func Logf(level int, format string, args ...interface{})

Log a formatted string

func ResetLog

func ResetLog(logfilePath, logLevel string)

func SetLogLevel

func SetLogLevel(level string)

func Warningf

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

Log at Warning level

Types

This section is empty.

Jump to

Keyboard shortcuts

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