responsibility_chain

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INFO = iota
	DEBUG
	WARN
	ERROR
	FATAL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLogger

type ConsoleLogger struct {
	Level int
	Next  ILogger
}

console logger

type ErrorLogger

type ErrorLogger struct {
	Level int
	Next  ILogger
}

Error Logger

type FileLogger

type FileLogger struct {
	Level int
	Next  ILogger
}

File Logger

type ILogger

type ILogger interface {
	// contains filtered or unexported methods
}

func NewConsoleLogger

func NewConsoleLogger(level int) ILogger

func NewErrorLogger

func NewErrorLogger(level int) ILogger

func NewFileLogger

func NewFileLogger(level int) ILogger

type LoggerChain

type LoggerChain struct {
}

get logger chain

func (*LoggerChain) GetLogger

func (lc *LoggerChain) GetLogger() ILogger

Jump to

Keyboard shortcuts

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