xlog

package
v0.0.0-...-299d4c7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(v ...interface{})

Alert alert

func Debug

func Debug(v ...interface{})

Debug debug

func Err

func Err(v ...interface{})

Err err

func Fatal

func Fatal(v ...interface{})

Fatal fatal

func Info

func Info(v ...interface{})

Info info

func Panic

func Panic(v ...interface{})

Panic panic

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets the output destination for the standard logger.

func Warn

func Warn(v ...interface{})

Warn warn

func Writer

func Writer() io.Writer

Writer returns the output destination for the standard logger.

Types

type Logger

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

Logger logger

func DefaultLogger

func DefaultLogger(w io.Writer) *Logger

DefaultLogger defult logger

func New

func New(w io.Writer) *Logger

New new logger

func (*Logger) Alert

func (l *Logger) Alert(v ...interface{})

Alert log Alert

func (*Logger) Debug

func (l *Logger) Debug(v ...interface{})

Debug log debug

func (*Logger) Err

func (l *Logger) Err(v ...interface{})

Err log Err

func (*Logger) Fatal

func (l *Logger) Fatal(v ...interface{})

Fatal log Fatal

func (*Logger) Info

func (l *Logger) Info(v ...interface{})

Info log info

func (*Logger) Panic

func (l *Logger) Panic(v ...interface{})

Panic log Panic

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer)

SetOutput sets the output destination for the standard logger.

func (*Logger) Warn

func (l *Logger) Warn(v ...interface{})

Warn log Warn

func (*Logger) Writer

func (l *Logger) Writer() io.Writer

Writer returns the output destination for the standard logger.

Jump to

Keyboard shortcuts

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