log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogBroker

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

LogBroker 日志系统

func (*LogBroker) Close

func (slf *LogBroker) Close()

Close doc @Summary Turn off the logging system

func (*LogBroker) Debug

func (slf *LogBroker) Debug(owner int64, client string, fmrt string, args ...interface{})

Debug doc @Summary Output Debug log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Error

func (slf *LogBroker) Error(owner int64, client string, fmrt string, args ...interface{})

Error doc @Summary Output error log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Fatal

func (slf *LogBroker) Fatal(owner int64, client string, fmrt string, args ...interface{})

Fatal doc @Summary Output critical error log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Info

func (slf *LogBroker) Info(owner int64, client string, fmrt string, args ...interface{})

Info doc @Summary Output information log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Initial

func (slf *LogBroker) Initial()

Initial doc @Summary initail logger

func (*LogBroker) Mount

func (slf *LogBroker) Mount()

Mount doc @Summary Mount log module

func (*LogBroker) Panic

func (slf *LogBroker) Panic(owner int64, client string, fmrt string, args ...interface{})

Panic doc @Summary Output program crash log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Redirect

func (slf *LogBroker) Redirect()

Redirect doc @Summary Redirect log file

func (*LogBroker) Trace

func (slf *LogBroker) Trace(owner int64, client string, fmrt string, args ...interface{})

Trace doc @Summary Output trace log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) Warning

func (slf *LogBroker) Warning(owner int64, client string, fmrt string, args ...interface{})

Warning doc @Summary Output warning log @Param (int32) owner @Param (string) format @Param (...interface{}) args

func (*LogBroker) WithFilPath

func (slf *LogBroker) WithFilPath(v string)

WithFilPath doc @Summary Setting log file name @Param (string) file name

func (*LogBroker) WithFormatter

func (slf *LogBroker) WithFormatter(f logrus.Formatter)

WithFormatter doc @Summary Setting log format @Param (logrus.Formatter)

func (*LogBroker) WithHandle

func (slf *LogBroker) WithHandle(v *logrus.Logger)

WithHandle doc @Summary Setting log object @Param (*logrus.Logger)

func (*LogBroker) WithLevel

func (slf *LogBroker) WithLevel(v logrus.Level)

WithLevel doc @Summary Setting log level limit @Param (logrus.Level) log level

func (*LogBroker) WithMailMax

func (slf *LogBroker) WithMailMax(v int)

WithMailMax doc @Summary Setting log mail max @Param (int)

Jump to

Keyboard shortcuts

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