logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Logger is a wrapper around logrus.Logger

func NewLogger

func NewLogger() *Logger

NewLogger creates a new logger instance

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Debug logs a debug message

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

Debugf logs a debug message with formatting

func (*Logger) Debugln

func (l *Logger) Debugln(args ...interface{})

Debugln logs a debug message with a newline

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

Error logs an error message

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...interface{})

Errorf logs an error message with formatting

func (*Logger) Errorln

func (l *Logger) Errorln(args ...interface{})

Errorln logs an error message with a newline

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info logs an informational message

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...interface{})

Infof logs an informational message with formatting

func (*Logger) Infoln

func (l *Logger) Infoln(args ...interface{})

Infoln logs an informational message with a newline

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

Warn logs a warning message

func (*Logger) Warnf

func (l *Logger) Warnf(format string, args ...interface{})

Warnf logs a warning message with formatting

func (*Logger) Warnln

func (l *Logger) Warnln(args ...interface{})

Warnln logs a warning message with a newline

Jump to

Keyboard shortcuts

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