logger

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenLogger  int64 = 1 << 10
	CloseLogger int64 = 1 << 11
)

Variables

This section is empty.

Functions

func SetOpenLogger

func SetOpenLogger(ok bool)

Types

type LLogger

type LLogger interface {
	Info(format string, v ...interface{})
	Debug(format string, v ...interface{})
	Warn(format string, v ...interface{})
	Error(format string, v ...interface{})
	Panic(format string, v ...interface{})
}
var DefaultLogger LLogger

func New

func New(l bilog.Logger) LLogger

type LLoggerImpl

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

func (*LLoggerImpl) Debug

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

func (*LLoggerImpl) Error

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

func (*LLoggerImpl) Info

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

func (*LLoggerImpl) Panic

func (c *LLoggerImpl) Panic(format string, v ...interface{})

func (*LLoggerImpl) ReadLoggerStatus

func (c *LLoggerImpl) ReadLoggerStatus() bool

func (*LLoggerImpl) Warn

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

type NilLogger

type NilLogger struct{}

func (NilLogger) Debug

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

func (NilLogger) Error

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

func (NilLogger) Info

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

func (NilLogger) Panic

func (n NilLogger) Panic(format string, v ...interface{})

func (NilLogger) Warn

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

Jump to

Keyboard shortcuts

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