clog

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: BSD-2-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LDEBUG = iota + 1
	LWARN
	LINFO
	LERROR
	LFATAL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CLog

type CLog struct {
	// contains filtered or unexported fields
}
var Logx *CLog = Default()

func Default

func Default() *CLog

func New

func New(w io.Writer, level int64, prefix string, flag int) *CLog

func (*CLog) AutoRegistNotify

func (l *CLog) AutoRegistNotify(notifyInfo []map[string]any)

func (*CLog) Debugf

func (l *CLog) Debugf(format string, v ...any)

func (*CLog) Debugln

func (l *CLog) Debugln(v ...any)

func (*CLog) Errorf

func (l *CLog) Errorf(format string, v ...any)

func (*CLog) Errorln

func (l *CLog) Errorln(v ...any)

func (*CLog) Fatalf

func (l *CLog) Fatalf(format string, v ...any)

func (*CLog) Fatalln

func (l *CLog) Fatalln(v ...any)

func (*CLog) Infof

func (l *CLog) Infof(format string, v ...any)

func (*CLog) Infoln

func (l *CLog) Infoln(v ...any)

func (*CLog) NDebugf

func (l *CLog) NDebugf(format string, v ...any)

func (*CLog) NDebugln

func (l *CLog) NDebugln(v ...any)

func (*CLog) NErrorf

func (l *CLog) NErrorf(format string, v ...any)

func (*CLog) NErrorln

func (l *CLog) NErrorln(v ...any)

func (*CLog) NFatalf

func (l *CLog) NFatalf(format string, v ...any)

func (*CLog) NFatalln

func (l *CLog) NFatalln(v ...any)

func (*CLog) NInfof

func (l *CLog) NInfof(format string, v ...any)

func (*CLog) NInfoln

func (l *CLog) NInfoln(v ...any)

func (*CLog) NWarnf

func (l *CLog) NWarnf(format string, v ...any)

func (*CLog) NWarnln

func (l *CLog) NWarnln(v ...any)

func (*CLog) RegistNotify

func (l *CLog) RegistNotify(name string, notify notification.Notification)

func (*CLog) SetLevel

func (l *CLog) SetLevel(level int64)

func (*CLog) Warnf

func (l *CLog) Warnf(format string, v ...any)

func (*CLog) Warnln

func (l *CLog) Warnln(v ...any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳