yslog

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 12 Imported by: 16

Documentation

Index

Constants

View Source
const (
	ErrorHead   = "[Error] "
	DebugHead   = "[Debug] "
	WarningHead = "[Warning] "
)

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func DebugV

func DebugV(v ...interface{})

func DebugVf

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

func Debugf

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

func Dump

func Dump(v ...interface{})

func DumpV

func DumpV(v ...interface{})

func Error added in v0.2.0

func Error(v ...interface{})

func ErrorV added in v0.2.0

func ErrorV(v ...interface{})

func ErrorVf added in v0.2.0

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

func Errorf added in v0.2.0

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

func Fatal

func Fatal(v ...interface{})

func FatalV

func FatalV(v ...interface{})

func FatalVf

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

func Fatalf

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

func GetWriter

func GetWriter() io.Writer

func Log added in v1.0.1

func Log(name ...string) *glog.Logger

func Print

func Print(v ...interface{})

func PrintToFile

func PrintToFile(v ...interface{})

func PrintV

func PrintV(v ...interface{})

func PrintVf

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

func Printf

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

func PrintfToFile

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

func ShellRun added in v1.0.1

func ShellRun(ctx context.Context, cmd string) error

func Warning

func Warning(v ...interface{})

func WarningV

func WarningV(v ...interface{})

func WarningVf

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

func Warningf

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

Types

type ILogger added in v0.5.0

type ILogger interface {
	Log() *glog.Logger
}

type LoggerCore added in v0.5.0

type LoggerCore struct {
	// contains filtered or unexported fields
}

func NewLoggerCore added in v0.5.0

func NewLoggerCore(name ...string) LoggerCore

func NewLoggerCoreWithPrefix added in v0.5.0

func NewLoggerCoreWithPrefix(prefix string, name ...string) LoggerCore

func (LoggerCore) Clone added in v0.5.0

func (l LoggerCore) Clone() *glog.Logger

func (LoggerCore) Log added in v1.0.1

func (l LoggerCore) Log() *glog.Logger

Jump to

Keyboard shortcuts

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