colorlog

package module
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 13 Imported by: 9

README

go-colorLog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...any)

func Debugf

func Debugf(format string, a ...any)

func EnableColor

func EnableColor(v bool)

func EnableLogPrint

func EnableLogPrint(v bool)

func Error

func Error(a ...any)

func Errorf

func Errorf(format string, a ...any)

func Fatal

func Fatal(a ...any)

func Fatalf

func Fatalf(format string, a ...any)

func FileExists

func FileExists(path string) bool

func Format added in v1.2.2

func Format(time time.Time, levle LogLevle, message string) string

func Formatln added in v1.2.4

func Formatln(time time.Time, levle LogLevle, message string) string

func Info

func Info(a ...any)

func Infof

func Infof(format string, a ...any)

func IntToLevle

func IntToLevle(i LogLevle) string

func MaxLogFile added in v1.1.1

func MaxLogFile(count uint)

func SBluef added in v1.1.0

func SBluef(format string, a ...interface{}) string

func SCyanf added in v1.1.0

func SCyanf(format string, a ...interface{}) string

func SGreenf added in v1.1.0

func SGreenf(format string, a ...interface{}) string

func SMagentaf added in v1.1.0

func SMagentaf(format string, a ...interface{}) string

func SRedf added in v1.1.0

func SRedf(format string, a ...interface{}) string

func SWhitef added in v1.1.0

func SWhitef(format string, a ...interface{}) string

func SYellowf added in v1.1.0

func SYellowf(format string, a ...interface{}) string

func SetLogLevle

func SetLogLevle(levle LogLevle)

func SetTimeFormate added in v1.1.0

func SetTimeFormate(Formate string)

func Warning

func Warning(a ...any)

func Warningf added in v1.2.1

func Warningf(format string, a ...any)

Types

type LogLevle added in v1.2.2

type LogLevle uint
const (
	L_Debug LogLevle = iota
	L_Info
	L_Warning
	L_Error
	L_Fatal
	L_None
)

func LevleToInt

func LevleToInt(s string) LogLevle

Jump to

Keyboard shortcuts

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