logging

package
v0.0.0-...-636dfae Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 6 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 {
	// contains filtered or unexported fields
}

Logger encapsulates the logging functionality.

func New

func New(verbose bool) *Logger

New creates a new Logger instance

func (*Logger) Debug

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

Debug prints a debug message in cyan

func (*Logger) Error

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

Error prints an error message in red

func (*Logger) Fatal

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

Fatal prints an error message in red and exits

func (*Logger) Info

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

Info prints an informational message

func (*Logger) Printf

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

Printf prints a regular message

func (*Logger) Success

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

Success prints a success message in green

func (*Logger) Warning

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

Warning prints a warning message in yellow

Jump to

Keyboard shortcuts

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