logger

package
v0.0.0-...-21c1986 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Debug(message string, args ...any)
	Info(message string, args ...any)
	Warn(message string, args ...any)
	Error(message string, args ...any)
	Printf(format string, args ...any)
	With(args ...any) *Logger
}

type Logger

type Logger struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(message string, args ...any)

func (*Logger) Error

func (l *Logger) Error(message string, args ...any)

func (*Logger) Fatal

func (l *Logger) Fatal(args ...any)

func (*Logger) Info

func (l *Logger) Info(message string, args ...any)

func (*Logger) Printf

func (l *Logger) Printf(format string, args ...any)

func (*Logger) Warn

func (l *Logger) Warn(message string, args ...any)

func (*Logger) With

func (l *Logger) With(args ...any) *Logger

Jump to

Keyboard shortcuts

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