log

package
v0.32.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Log is the under log object

Functions

func AppendListener added in v0.32.2

func AppendListener(l LogListener)

func CallLogListeners added in v0.32.2

func CallLogListeners(log string)

func Debug

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

func Error

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

func Info

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

func InitLog

func InitLog(logWay string, logFile string, logLevel string, maxdays int64, disableLogColor bool)

func SetLogFile

func SetLogFile(logWay string, logFile string, maxdays int64, disableLogColor bool)

SetLogFile to configure log params logWay: file or console

func SetLogLevel

func SetLogLevel(logLevel string)

SetLogLevel set log level, default is warning value: error, warning, info, debug, trace

func Trace

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

func Warn

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

Types

type LogListener added in v0.32.2

type LogListener interface {
	Log(log string)
	Location() string
}

Jump to

Keyboard shortcuts

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