logger

package
v0.0.0-...-04e6321 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogErrorFileName = "go-crawler.error.log"
	LogStdFileName   = "go-crawler.log"

	DebugPrefix = "[DEBUG] "
	InfoPrefix  = "[INFO] "
	ErrorPrefix = "[ERROR]"
)

Variables

View Source
var (
	DebugMode = false
)

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Info

func Info(v ...interface{})

func Infof

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

func InitLogger

func InitLogger(ops LoggerOptions)

Types

type LoggerOptions

type LoggerOptions struct {
	LogPath   string
	DebugMode bool
}

Jump to

Keyboard shortcuts

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