logger

package
v0.5.0-test1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Black   = Color("\033[30m%s\033[0m")
	Red     = Color("\033[31m%s\033[0m")
	Green   = Color("\033[32m%s\033[0m")
	Yellow  = Color("\033[33m%s\033[0m")
	Purple  = Color("\033[34m%s\033[0m")
	Magenta = Color("\033[35m%s\033[0m")
	Teal    = Color("\033[36m%s\033[0m")
	White   = Color("\033[37m%s\033[0m")
)

Functions

func Color

func Color(colorString string) func(...interface{}) string

func Debug

func Debug(context string, data interface{})

func Error

func Error(context string, data interface{})

func Info

func Info(context string, data interface{})

func Log

func Log(context string, data interface{}, color func(...interface{}) string, level string, logFunction func(args ...interface{}))

func Print

func Print(context string)

func Warn

func Warn(context string, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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