logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string)

func Debugf

func Debugf(format string, a ...any)

func Error

func Error(message string)

func Errorf

func Errorf(format string, a ...any)

func Info

func Info(message string)

func Infof

func Infof(format string, a ...any)

func Warn

func Warn(message string)

func Warnf

func Warnf(format string, a ...any)

Types

type Logger

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

func NewLogger

func NewLogger(level slog.Level, prefix string) *Logger

func (*Logger) Debug

func (logger *Logger) Debug(message string)

func (*Logger) Debugf

func (logger *Logger) Debugf(format string, a ...any)

func (*Logger) Error

func (logger *Logger) Error(message string)

func (*Logger) Errorf

func (logger *Logger) Errorf(format string, a ...any)

func (*Logger) Info

func (logger *Logger) Info(message string)

func (*Logger) Infof

func (logger *Logger) Infof(format string, a ...any)

func (*Logger) Prefix

func (logger *Logger) Prefix() string

func (*Logger) Warn

func (logger *Logger) Warn(message string)

func (*Logger) Warnf

func (logger *Logger) Warnf(format string, a ...any)

Jump to

Keyboard shortcuts

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