log

package
v0.0.0-...-0e7d11b Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(savePath string) *logrus.Logger

Types

type Log

type Log struct {
	*logrus.Logger
}

func (*Log) Error

func (this *Log) Error(args ...interface{})

func (*Log) Info

func (this *Log) Info(args ...interface{})

func (*Log) Infof

func (this *Log) Infof(format string, args ...interface{})

func (*Log) Trace

func (this *Log) Trace(format string, args ...interface{})

type LogerFormatter

type LogerFormatter struct{}

日志输出格式

func (*LogerFormatter) Format

func (s *LogerFormatter) Format(entry *logrus.Entry) ([]byte, error)

type Writer

type Writer struct {
	Log
}

//

func (Writer) Printf

func (w Writer) Printf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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