logging

package
v0.0.0-...-d54de9c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ldate     = 1 << iota     // the date in the local time zone: 2009/01/23
	Ltime                     // the time in the local time zone: 01:23:23
	LstdFlags = Ldate | Ltime // initial values for the standard logger
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageMasterLogger

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

func NewImageMasterLogger

func NewImageMasterLogger() *ImageMasterLogger

initialize a new logger with log levels |info, warning, error|

func (*ImageMasterLogger) Log

func (i *ImageMasterLogger) Log(level Level, message string, a ...any)

Log function accepts as first string level = ("info", "warning", "error" and the corresponding implementation logs the message and the additional params from it to stdout)

type Level

type Level string
const (
	Info    Level = "info"
	Warning Level = "warning"
	Error   Level = "error"
)

Jump to

Keyboard shortcuts

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