mlog

package
v0.0.0-...-ade9fc0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOneLogger

func AddOneLogger(logger *log.Logger)

func Debug

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

Debug is the same as Debugf

func Debugf

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

Debugf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Debugln

func Debugln(v ...interface{})

Debugln debug level log

func Error

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

Error is the same as Errorf

func Errorf

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

Errorf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Errorln

func Errorln(v ...interface{})

Errorln debug level log

func Fatal

func Fatal(v ...interface{})

Fatal is equivalent to Print() followed by a call to os.Exit(1).

func Fatalf

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

Fatalf is equivalent to Printf() followed by a call to os.Exit(1).

func Fatalln

func Fatalln(v ...interface{})

Fatalln is equivalent to Println() followed by a call to os.Exit(1).

func Info

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

Info is the same as Infof

func Infof

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

Infof calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Infoln

func Infoln(v ...interface{})

Infoln debug level log

func Panic

func Panic(v ...interface{})

Panic is equivalent to Print() followed by a call to panic().

func Panicf

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

Panicf is equivalent to Printf() followed by a call to panic().

func Panicln

func Panicln(v ...interface{})

Panicln is equivalent to Println() followed by a call to panic().

func Print

func Print(v ...interface{})

Print calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Printf

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

Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Println

func Println(v ...interface{})

Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func SetLevel

func SetLevel(level log.Level)

func Verbose

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

Verbose is the same as Verbosef

func Verbosef

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

Verbosef calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Verboseln

func Verboseln(v ...interface{})

Verboseln verbose level log

func Warn

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

Warn is the same as Warnf

func Warnf

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

Warnf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Warnln

func Warnln(v ...interface{})

Warnln debug level log

Types

type MLogger

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

func Clone

func Clone() *MLogger

func New

func New() *MLogger

func (*MLogger) AddOneLogger

func (mlog *MLogger) AddOneLogger(logger *log.Logger)

func (*MLogger) Clone

func (mlog *MLogger) Clone() *MLogger

func (*MLogger) Debug

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

Debug is the same as Debugf

func (*MLogger) Debugf

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

Debugf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Debugln

func (mlog *MLogger) Debugln(v ...interface{})

Debugln debug level log

func (*MLogger) Error

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

Error is the same as Errorf

func (*MLogger) Errorf

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

Errorf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Errorln

func (mlog *MLogger) Errorln(v ...interface{})

Errorln debug level log

func (*MLogger) Fatal

func (mlog *MLogger) Fatal(v ...interface{})

Fatal is equivalent to Print() followed by a call to os.Exit(1).

func (*MLogger) Fatalf

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

Fatalf is equivalent to Printf() followed by a call to os.Exit(1).

func (*MLogger) Fatalln

func (mlog *MLogger) Fatalln(v ...interface{})

Fatalln is equivalent to Println() followed by a call to os.Exit(1).

func (*MLogger) Info

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

Info is the same as Infof

func (*MLogger) Infof

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

Infof calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Infoln

func (mlog *MLogger) Infoln(v ...interface{})

Infoln debug level log

func (*MLogger) Panic

func (mlog *MLogger) Panic(v ...interface{})

Panic is equivalent to Print() followed by a call to panic().

func (*MLogger) Panicf

func (mlog *MLogger) Panicf(format string, v ...interface{})

Panicf is equivalent to Printf() followed by a call to panic().

func (*MLogger) Panicln

func (mlog *MLogger) Panicln(v ...interface{})

Panicln is equivalent to Println() followed by a call to panic().

func (*MLogger) Print

func (mlog *MLogger) Print(v ...interface{})

Print calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func (*MLogger) Printf

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

Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Println

func (mlog *MLogger) Println(v ...interface{})

Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

func (*MLogger) SetLevel

func (mlog *MLogger) SetLevel(level log.Level)

func (*MLogger) Verbose

func (mlog *MLogger) Verbose(format string, v ...interface{})

Verbose is the same as Verbosef

func (*MLogger) Verbosef

func (mlog *MLogger) Verbosef(format string, v ...interface{})

Verbosef calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Verboseln

func (mlog *MLogger) Verboseln(v ...interface{})

Verboseln verbose level log

func (*MLogger) Warn

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

Warn is the same as Warnf

func (*MLogger) Warnf

func (mlog *MLogger) Warnf(format string, v ...interface{})

Warnf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func (*MLogger) Warnln

func (mlog *MLogger) Warnln(v ...interface{})

Warnln debug level log

Jump to

Keyboard shortcuts

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