logging

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

func Debugln

func Debugln(a ...interface{})

func Errorf

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

func Errorln

func Errorln(a ...interface{})

func ExitIfError

func ExitIfError(err *ScraperError)

ExitIfError TODO make this better

func ExitIfErrorWithFunc

func ExitIfErrorWithFunc(err *ScraperError, f func())

func Infof

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

func Infoln

func Infoln(a ...interface{})

func SetLoggingLevel

func SetLoggingLevel(level Level)

func Warningf

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

func Warningln

func Warningln(a ...interface{})

Types

type Level

type Level int
const (
	DEBUG Level = iota
	INFO
	WARNING
	ERROR
	OFF
)

type ScraperError

type ScraperError struct {
	Error   error
	Message string
	Code    int
}

Jump to

Keyboard shortcuts

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