logger

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Debug level
	Debug *log.Logger
	// Info level
	Info *log.Logger
	// Warning level
	Warning *log.Logger
	// Error level
	Error *log.Logger
	// Output special level used for script output
	Output *log.Logger
)

Functions

func Gray added in v1.9.0

func Gray(text string) string

Gray ANSI color applied to a string

func Green added in v1.9.0

func Green(text string) string

Green ANSI color applied to a string

func Init

func Init(level string, with ...string)

Init logger level

func Orange added in v1.9.0

func Orange(text string) string

Orange ANSI color applied to a string

func Purple added in v1.12.0

func Purple(text string) string

Purple ANSI color applied to a string

func Red added in v1.9.0

func Red(text string) string

Red ANSI color applied to a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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