Versions in this module Expand all Collapse all v1 v1.0.2 Feb 12, 2022 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const TraceLevel + const WarnLevel + var Black = "\033[30;1m" + var Blue = "\033[34;1m" + var DarkGreen = "\033[36;1m" + var Green = "\033[32;1m" + var Purple = "\033[35;1m" + var Red = "\033[31;1m" + var Reset = "\033[0m" + var White = "\033[37;1m" + var Yellow = "\033[33;1m" + func ExitLogger() + func InitLogger(appName, fileName string) + func PrinfInterface(v interface{}) + func PrintDebug(format string, v ...interface{}) + func PrintDebugCalldepth(calldepth int, format string, v ...interface{}) + func PrintError(format string, v ...interface{}) + func PrintErrorCalldepth(calldepth int, format string, v ...interface{}) + func PrintInfo(format string, v ...interface{}) + func PrintInfoCalldepth(calldepth int, format string, v ...interface{}) + func PrintLog(level logrus.Level, format string, v ...interface{}) + func PrintPanic(format string, v ...interface{}) + func PrintReport(callerName, calleeName, calleeNode, methods string, errCode int, ...) + func PrintReportByTime(callerName, calleeName, calleeNode, methods string, errCode int, ...) + func PrintZipkin(s string) + type LogrusConfig struct + IsFormat bool + LogFileName string + LogFilePath string + LogLevel logrus.Level + MaxDays int + MaxSize int64 + PrLogMaxLen int + ProgramName string + Suffix string + func (f *LogrusConfig) Format(entry *logrus.Entry) ([]byte, error) + type MyLogger struct + var AppLogger *MyLogger + var AppReportLogger *MyLogger + var AppZipkinLogger *MyLogger + func NewLogrus(logConf LogrusConfig) *MyLogger + func (l *MyLogger) Close() + func (l *MyLogger) GetContextInfo(calldepth int) (string, string, int) + func (l *MyLogger) InitColor()