logger

package module
v0.0.0-...-41fa6d2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func D

func D(v ...interface{})

func Df

func Df(format string, args ...interface{})

func E

func E(v ...interface{})

func Ef

func Ef(format string, args ...interface{})

func I

func I(v ...interface{})

func If

func If(format string, args ...interface{})

func Init

func Init(directory, fileName string, maxRecent int, funcNamePrefix, filePathPrefix string)

func RecentLogs

func RecentLogs(reverse bool) string

func W

func W(v ...interface{})

func Wf

func Wf(format string, args ...interface{})

Types

type MiniLogger

type MiniLogger struct {
	OnAppended func(string)
	OnClosed   func()
	// contains filtered or unexported fields
}

func NewFileLogger

func NewFileLogger(filePath string, maxSize int64) *MiniLogger

func NewTempLogger

func NewTempLogger(name string) *MiniLogger

func (*MiniLogger) Append

func (miniLogger *MiniLogger) Append(v ...interface{})

func (*MiniLogger) Appendf

func (miniLogger *MiniLogger) Appendf(format string, args ...interface{})

func (*MiniLogger) BeginClip

func (miniLogger *MiniLogger) BeginClip()

func (*MiniLogger) Close

func (miniLogger *MiniLogger) Close()

func (*MiniLogger) Content

func (miniLogger *MiniLogger) Content() string

func (*MiniLogger) EndClip

func (miniLogger *MiniLogger) EndClip() string

func (*MiniLogger) NewChild

func (miniLogger *MiniLogger) NewChild() *MiniLogger

Jump to

Keyboard shortcuts

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