logger

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red     = "\033[1;31m%v\033[0m\n"
	Green   = "\033[1;32m%v\033[0m\n"
	Yellow  = "\033[1;33m%v\033[0m\n"
	Blue    = "\033[1;34m%v\033[0m\n"
	Magenta = "\033[5;35m%v\033[0m\n"
)

Variables

View Source
var Ascii1 string = `` /* 1958-byte string literal not displayed */
View Source
var Ascii10 string = `` /* 348-byte string literal not displayed */
View Source
var Ascii2 string = `` /* 200-byte string literal not displayed */
View Source
var Ascii3 string = `` /* 453-byte string literal not displayed */
View Source
var Ascii4 string = `` /* 383-byte string literal not displayed */
View Source
var Ascii5 string = `` /* 266-byte string literal not displayed */
View Source
var Ascii6 string = `` /* 851-byte string literal not displayed */
View Source
var Ascii7 string = `` /* 312-byte string literal not displayed */
View Source
var Ascii8 string = `` /* 608-byte string literal not displayed */
View Source
var Ascii9 string = `` /* 310-byte string literal not displayed */
View Source
var StreamLogs = []string{}

Functions

func CheckError

func CheckError(err error) bool

CheckError check if err not nil print it and return true

func Debug

func Debug(anything ...interface{})

Debug println anything with blue color

func Error

func Error(anything ...interface{})

Error println anything with red color

func GetLastestTag

func GetLastestTag() string

func Info

func Info(anything ...interface{})

Info println anything with blue color

func Printf

func Printf(pattern string, anything ...interface{})

Printf take pattern(rd,gr,yl,bl,mg), varsString, varsValues

func Printfs added in v0.7.0

func Printfs(pattern string, anything ...interface{})

func Success

func Success(anything ...interface{})

Success println anything with green color

func Warn

func Warn(anything ...interface{})

Warning println anything with yellow color

Types

This section is empty.

Jump to

Keyboard shortcuts

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