log

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorLogger

type ColorLogger struct {
	Color color.Attribute
	// contains filtered or unexported fields
}

Logger with ANSI color output

func NewColorLogger

func NewColorLogger(colorAttr color.Attribute) ColorLogger

Create new color logger

func (*ColorLogger) Print

func (l *ColorLogger) Print(v ...interface{})

Print values

func (*ColorLogger) Printf

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

Print a formatted string

func (*ColorLogger) Println

func (l *ColorLogger) Println(v ...interface{})

Print values with a newline

func (*ColorLogger) Printlnf

func (l *ColorLogger) Printlnf(format string, v ...interface{})

Print a formatted string with a newline

Jump to

Keyboard shortcuts

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