logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
	Messages    []string
	PackageName string
	LogLevel    slog.Level
	LogInterval time.Duration
	Done        chan struct{}
}

func New

func New(logLvl slog.Level, logIntvl time.Duration, pkgName string) *DefaultLogger

type Logger

type Logger interface {
	Start()
	Stop()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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