log

package
v0.10.20 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keyvals ...interface{})

func Error

func Error(msg string, keyvals ...interface{})

func Info

func Info(msg string, keyvals ...interface{})

func InitLogger

func InitLogger(l tmlog.Logger)

func NewAsyncFileLogger

func NewAsyncFileLogger(filePath string, buffSize int64) tmlog.Logger

func NewConsoleLogger

func NewConsoleLogger() tmlog.Logger

func With

func With(keyvals ...interface{}) tmlog.Logger

Types

type AsyncFileWriter

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

func NewAsyncFileWriter

func NewAsyncFileWriter(filePath string, bufSize int64) *AsyncFileWriter

func (*AsyncFileWriter) Flush

func (w *AsyncFileWriter) Flush() error

func (*AsyncFileWriter) Start

func (w *AsyncFileWriter) Start() error

func (*AsyncFileWriter) Stop

func (w *AsyncFileWriter) Stop()

func (*AsyncFileWriter) SyncWrite

func (w *AsyncFileWriter) SyncWrite(msg []byte)

func (*AsyncFileWriter) Write

func (w *AsyncFileWriter) Write(msg []byte) (n int, err error)

type HourTicker

type HourTicker struct {
	C <-chan time.Time
	// contains filtered or unexported fields
}

func NewHourTicker

func NewHourTicker() *HourTicker

func (*HourTicker) Stop

func (ht *HourTicker) Stop()

func (*HourTicker) Ticker

func (ht *HourTicker) Ticker() <-chan time.Time

Jump to

Keyboard shortcuts

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