logger

package
v0.0.0-...-3c8687b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultWriter = &Writer{
	w: os.Stderr,
	c: true,
}

DefaultWriter var.

Functions

This section is empty.

Types

type Logger

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

Logger struct.

func New

func New(w *Writer, name string) *Logger

New creates new logger instance.

func (*Logger) Child

func (l *Logger) Child(name string) *Logger

Child ...

func (*Logger) Error

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

Error ...

func (*Logger) Info

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

Info ...

func (*Logger) Warn

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

Warn ...

type Writer

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

Writer struct.

func NewWriter

func NewWriter(w io.Writer, supportANSIColors bool) *Writer

NewWriter ...

func NewWriterFile

func NewWriterFile(path string) (*Writer, error)

NewWriterFile ...

Jump to

Keyboard shortcuts

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