logger

package
v0.0.0-...-f94c38c Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Prints chan string
	// contains filtered or unexported fields
}

TODO (B) Support log levels github.com/d2g/logfilter

func Init

func Init(file string) *Logger

func (*Logger) Close

func (l *Logger) Close() error

func (*Logger) Print

func (l *Logger) Print(s string)

func (*Logger) PrintError

func (l *Logger) PrintError(source string, err error)

func (*Logger) Printf

func (l *Logger) Printf(s string, as ...interface{})

type LoggerInterface

type LoggerInterface interface {
	Print(s string)
	Printf(s string, as ...interface{})
	PrintError(source string, err error)
}

Jump to

Keyboard shortcuts

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