_logUtils

package
v0.0.0-...-5746ace Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertUnicode

func ConvertUnicode(str []byte) string

func Error

func Error(str string)

func Errorf

func Errorf(str string, args ...interface{})

func FileExist

func FileExist(path string) bool

func Info

func Info(str string)

func Infof

func Infof(str string, args ...interface{})

func Init

func Init(app string)

func MkDirIfNeeded

func MkDirIfNeeded(dir string) error

func Print

func Print(str string)

func PrintColor

func PrintColor(msg string, attr color.Attribute)

func PrintUnicode

func PrintUnicode(str []byte)

func Printf

func Printf(str string, args ...interface{})

func Warn

func Warn(str string)

func Warnf

func Warnf(str string, args ...interface{})

Types

type MyFormatter

type MyFormatter struct {
	logrus.TextFormatter
}

func (*MyFormatter) Format

func (f *MyFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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