log

package
v1.8.9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...any)

func Fatalf

func Fatalf(format string, v ...any)

func Fatalfln added in v1.7.3

func Fatalfln(format string, v ...any)

func Fatalln

func Fatalln(v ...any)

func Flags

func Flags() int

func Panic

func Panic(a ...any)

func Panicf

func Panicf(format string, a ...any)

func Panicfln added in v1.7.3

func Panicfln(format string, a ...any)

func Panicln

func Panicln(a ...any)

func Print

func Print(a ...any)

func Printf

func Printf(format string, a ...any)

func Printfln added in v1.7.3

func Printfln(format string, a ...any)

func Println

func Println(a ...any)

Types

type Logger

type Logger struct {
	*log.Logger
	// contains filtered or unexported fields
}
var (
	Cyan    Logger
	Red     Logger
	Green   Logger
	Magenta Logger
	Yellow  Logger
	Black   Logger
	Blue    Logger
	White   Logger

	HiCyan    Logger
	HiRed     Logger
	HiGreen   Logger
	HiMagenta Logger
	HiYellow  Logger
	HiBlack   Logger
	HiBlue    Logger
	HiWhite   Logger

	BgCyan    Logger
	BgRed     Logger
	BgGreen   Logger
	BgMagenta Logger
	BgYellow  Logger
	BgBlack   Logger
	BgBlue    Logger
	BgWhite   Logger

	BgHiCyan    Logger
	BgHiRed     Logger
	BgHiGreen   Logger
	BgHiMagenta Logger
	BgHiYellow  Logger
	BgHiBlack   Logger
	BgHiBlue    Logger
	BgHiWhite   Logger
)

func Color added in v1.7.1

func Color(attr ...color.Attribute) *Logger

func Copy

func Copy(x *Logger, attr ...color.Attribute) *Logger

func Default

func Default() *Logger

func New

func New(opts Options) *Logger

func (*Logger) Fatal

func (x *Logger) Fatal(a ...any)

func (*Logger) Fatalf

func (x *Logger) Fatalf(format string, a ...any)

func (*Logger) Fatalfln added in v1.7.3

func (x *Logger) Fatalfln(format string, a ...any)

func (*Logger) Fatalln

func (x *Logger) Fatalln(a ...any)

func (*Logger) Panic

func (x *Logger) Panic(a ...any)

func (*Logger) Panicf

func (x *Logger) Panicf(format string, a ...any)

func (*Logger) Panicfln added in v1.7.3

func (x *Logger) Panicfln(format string, a ...any)

func (*Logger) Panicln

func (x *Logger) Panicln(a ...any)

func (*Logger) Print

func (x *Logger) Print(a ...any)

func (*Logger) Printf

func (x *Logger) Printf(format string, a ...any)

func (*Logger) Printfln added in v1.7.3

func (x *Logger) Printfln(format string, a ...any)

func (*Logger) Println

func (x *Logger) Println(a ...any)

func (*Logger) SetColor

func (x *Logger) SetColor(color color.Attribute)

type Options

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

Jump to

Keyboard shortcuts

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