log

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLoggerFactory

type DefaultLoggerFactory struct {
}

func (*DefaultLoggerFactory) CreateLogger

func (inst *DefaultLoggerFactory) CreateLogger() Logger

type Logger

type Logger interface {
	Fatal(a ...interface{})
	Error(a ...interface{})
	Warn(a ...interface{})
	Info(a ...interface{})
	Debug(a ...interface{})
	Trace(a ...interface{})

	IsFatalEnabled() bool
	IsErrorEnabled() bool
	IsWarnEnabled() bool
	IsInfoEnabled() bool
	IsDebugEnabled() bool
	IsTraceEnabled() bool
}

Logger 是一个统一的抽象日志接口

type LoggerFactory

type LoggerFactory interface {
	CreateLogger() Logger
}

LoggerFactory 是Logger的工厂

Jump to

Keyboard shortcuts

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