logger

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructuredLog added in v1.2.0

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

func NewStructuredLogger added in v1.2.0

func NewStructuredLogger(verbose int, out io.Writer) *StructuredLog

func (*StructuredLog) Box added in v1.2.0

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

func (*StructuredLog) Debug added in v1.2.0

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

func (*StructuredLog) Error added in v1.2.0

func (l *StructuredLog) Error(ctx context.Context, msg string, args ...any)

func (*StructuredLog) ExternalLogHandler added in v1.2.0

func (l *StructuredLog) ExternalLogHandler(ctx context.Context, msgType consts.CustomExternalLogLevel, message string)

func (*StructuredLog) ExternalLogHandlerf added in v1.2.0

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

func (*StructuredLog) NewError added in v1.2.0

func (l *StructuredLog) NewError(ctx context.Context, format string, args ...any) error

func (*StructuredLog) Note added in v1.2.0

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

func (*StructuredLog) Print added in v1.2.0

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

func (*StructuredLog) Success added in v1.2.0

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

func (*StructuredLog) Table added in v1.2.0

func (*StructuredLog) Warn added in v1.2.0

func (l *StructuredLog) 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