logservice

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Async

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

func NewAsync

func NewAsync(ctx context.Context, cfg *config.Config) *Async

func (*Async) Close

func (l *Async) Close() error

func (*Async) Printfln

func (l *Async) Printfln(msg string, args ...any)

func (*Async) Println

func (l *Async) Println(msg string)

func (*Async) Run

func (l *Async) Run(wg *sync.WaitGroup)

type CloseFunc

type CloseFunc func()

type Logger

type Logger interface {
	Run(wg *sync.WaitGroup)
	Println(msg string)
	Printfln(msg string, args ...any)
}

type MultiWriter added in v1.0.2

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

func NewMultiWriter added in v1.0.2

func NewMultiWriter(writers ...io.Writer) *MultiWriter

func (*MultiWriter) Write added in v1.0.2

func (w *MultiWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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