log

package
v0.10.18 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MPL-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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