logger

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralLog

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

func NewLogger

func NewLogger(verbose int, out io.Writer) *GeneralLog

func (*GeneralLog) Box

func (l *GeneralLog) Box(ctx context.Context, title string, lines string)

func (*GeneralLog) Debug

func (l *GeneralLog) Debug(ctx context.Context, msg string, args ...any)

func (*GeneralLog) Error

func (l *GeneralLog) Error(msg string, args ...any)

func (*GeneralLog) ExternalLogHandler

func (l *GeneralLog) ExternalLogHandler(ctx context.Context, msgType logger.CustomExternalLogLevel, message string)

func (*GeneralLog) ExternalLogHandlerf

func (l *GeneralLog) ExternalLogHandlerf(ctx context.Context, msgType logger.CustomExternalLogLevel, format string, args ...interface{})

func (*GeneralLog) NewError

func (l *GeneralLog) NewError(ctx context.Context, msg string, args ...any) error

func (*GeneralLog) Note

func (l *GeneralLog) Note(ctx context.Context, msg string, args ...any)

func (*GeneralLog) Print

func (l *GeneralLog) Print(ctx context.Context, msg string, args ...any)

func (*GeneralLog) Success

func (l *GeneralLog) Success(ctx context.Context, msg string, args ...any)

func (*GeneralLog) Table

func (l *GeneralLog) Table(ctx context.Context, headers []string, data [][]string)

func (*GeneralLog) Warn

func (l *GeneralLog) Warn(ctx context.Context, msg string, args ...any)

Jump to

Keyboard shortcuts

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