logging

package
v0.0.0-...-864a747 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helper

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

Helper helps with writing logs to io.Writers. Helper implements logger.Logger interface. Writing is done concurrently with out blocking the current thread.

func New

func New(callOnWriteLogErr, callOnFatal func(error), writers ...io.Writer) Helper

New creates new Helper.

func (Helper) Debug

func (h Helper) Debug(msg string)

Debug writes debug log.

func (Helper) Error

func (h Helper) Error(msg string)

Error writes error log.

func (Helper) Fatal

func (h Helper) Fatal(msg string)

Fatal writes fatal log.

func (Helper) Info

func (h Helper) Info(msg string)

Info writes info log.

func (Helper) Warn

func (h Helper) Warn(msg string)

Warn writes warning log.

Jump to

Keyboard shortcuts

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