logger

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RunningTasks = 0
	ActiveTasks  = make(map[string]bool)
)

Functions

func EnsureLength

func EnsureLength(name string, length int) string

func TimeNow

func TimeNow(now func() time.Time) time.Time

Types

type ILogger

type ILogger struct {
	Config config.Config
}

func Logger

func Logger(cfg *config.Config) ILogger

func (ILogger) Debug

func (l ILogger) Debug(module, target, message string)

func (ILogger) Done

func (l ILogger) Done(module, target, message string)

func (ILogger) Error

func (l ILogger) Error(module, target, message string)

func (ILogger) Info

func (l ILogger) Info(module, target, message string)

func (ILogger) Printer

func (l ILogger) Printer(symbol, logtype, module, target, message string, color string, condition bool)

func (ILogger) Start

func (l ILogger) Start(module, target, message string)

func (ILogger) Ticker

func (l ILogger) Ticker(target string, t func() time.Time)

func (ILogger) Warn

func (l ILogger) Warn(module, target, message string)

Jump to

Keyboard shortcuts

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