logger

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.2.0

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

func NewConsoleLogger added in v1.2.0

func NewConsoleLogger() *Logger

func (*Logger) Error added in v1.2.0

func (l *Logger) Error(message string, a ...interface{})

Error prints a message with the prefix "ERROR: " in red.

func (*Logger) Info added in v1.2.0

func (l *Logger) Info(message string, a ...interface{})

Info prints a message with the prefix "INFO: " in cyan.

func (*Logger) Warn added in v1.2.0

func (l *Logger) Warn(message string, a ...interface{})

Warn prints a message with the prefix "WARN: " in yellow.

Jump to

Keyboard shortcuts

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