logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 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 Logger

type Logger struct {
	*log.Logger
}

Logger wraps the standard logger with custom formatting

func New

func New() *Logger

New creates a new Logger instance

func (*Logger) Error

func (l *Logger) Error(format string, v ...interface{})

Error logs an error message with red color

func (*Logger) Info

func (l *Logger) Info(format string, v ...interface{})

Info logs an info message with green color

Jump to

Keyboard shortcuts

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