logger

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: BSD-3-Clause-Clear 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 {
	Accent *text.Colors
	Writer *message.Printer
}

func New

func New() *Logger

func (*Logger) Err

func (l *Logger) Err(err error, strs ...string)

func (*Logger) Error

func (l *Logger) Error(s string, f ...interface{})

func (*Logger) Info

func (l *Logger) Info(s string, f ...interface{})

func (*Logger) Success

func (l *Logger) Success(s string, f ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(s string, f ...interface{})

func (*Logger) WithAccent

func (l *Logger) WithAccent(color text.Color) *text.Colors

Jump to

Keyboard shortcuts

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