Versions in this module Expand all Collapse all v0 v0.0.1 Apr 21, 2022 Changes in this version + const BitDate + const BitDefault + const BitLevel + const BitLongFile + const BitMicroSeconds + const BitShortFile + const BitStdFlag + const BitTime + const LogDebug + const LogDump + const LogError + const LogFatal + const LogInfo + const LogMaxBuf + const LogNot + const LogPanic + const LogSuccess + const LogTips + const LogWarn + var DisableColor = false + var LevelColous = []Color + var Levels = []string + var Log = NewLogs(os.Stderr, "", BitDefault, LogDump, true, 3) + func AddFlag(flag int) + func CleanLog(log *Logger) + func ColorBackgroundWrap(color Color, backgroundColor Color, text string) string + func ColorTextWrap(color Color, text string) string + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func DisableConsoleColor() + func Discard() + func Dump(v ...interface{}) + func EnableTerminalProcessing(stream syscall.Handle, enable bool) error — windows/amd64 + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fatal(v ...interface{}) + func Fatalf(format string, v ...interface{}) + func ForceConsoleColor() + func GetAllColorText() map[string]Color + func GetFlags() int + func GetLogLevel() int + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func IsSupportColor() bool + func NewIndentWriter(w io.Writer, pre ...[]byte) io.Writer + func OpTextWrap(op Op, text string) string + func OutAllColor() + func Panic(v ...interface{}) + func Panicf(format string, v ...interface{}) + func Printf(format string, v ...interface{}) + func Println(v ...interface{}) + func ResetFlags(flag int) + func SetFile(filepath string, archive ...bool) + func SetLogLevel(level int) + func SetPrefix(prefix string) + func SetSaveFile(filepath string, archive ...bool) + func Stack(v ...interface{}) + func Success(v ...interface{}) + func Successf(format string, v ...interface{}) + func Tips(v ...interface{}) + func Tipsf(format string, v ...interface{}) + func Track(logTip string, v ...int) + func TrackCurrent(max, depth int) (track []string) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + type Color int + const ColorBlack + const ColorBlue + const ColorCyan + const ColorDefault + const ColorGreen + const ColorLightBlue + const ColorLightCyan + const ColorLightGreen + const ColorLightGrey + const ColorLightMagenta + const ColorLightRed + const ColorLightWhite + const ColorLightYellow + const ColorMagenta + const ColorRed + const ColorWhite + const ColorYellow + type Format int + type Logger struct + func New(moduleName ...string) *Logger + func NewLogs(out io.Writer, prefix string, flag int, level int, color bool, calldDepth int) *Logger + func (log *Logger) AddFlag(flag int) + func (log *Logger) CloseFile() + func (log *Logger) ColorBackgroundWrap(color Color, backgroundColor Color, text string) string + func (log *Logger) ColorTextWrap(color Color, text string) string + func (log *Logger) Debug(v ...interface{}) + func (log *Logger) Debugf(format string, v ...interface{}) + func (log *Logger) DisableConsoleColor() + func (log *Logger) Discard() + func (log *Logger) Dump(v ...interface{}) + func (log *Logger) Error(v ...interface{}) + func (log *Logger) Errorf(format string, v ...interface{}) + func (log *Logger) Fatal(v ...interface{}) + func (log *Logger) Fatalf(format string, v ...interface{}) + func (log *Logger) ForceConsoleColor() + func (log *Logger) GetFlags() int + func (log *Logger) GetLogLevel() int + func (log *Logger) GetPrefix() string + func (log *Logger) Info(v ...interface{}) + func (log *Logger) Infof(format string, v ...interface{}) + func (log *Logger) OpTextWrap(color Op, text string) string + func (log *Logger) Panic(v ...interface{}) + func (log *Logger) Panicf(format string, v ...interface{}) + func (log *Logger) Printf(format string, v ...interface{}) + func (log *Logger) Println(v ...interface{}) + func (log *Logger) ResetFlags(flag int) + func (log *Logger) SetFile(filepath string, archive ...bool) + func (log *Logger) SetLogLevel(level int) + func (log *Logger) SetPrefix(prefix string) + func (log *Logger) SetSaveFile(filepath string, archive ...bool) + func (log *Logger) Stack(v ...interface{}) + func (log *Logger) Success(v ...interface{}) + func (log *Logger) Successf(format string, v ...interface{}) + func (log *Logger) Tips(v ...interface{}) + func (log *Logger) Tipsf(format string, v ...interface{}) + func (log *Logger) Track(logTip string, v ...int) + func (log *Logger) Warn(v ...interface{}) + func (log *Logger) Warnf(format string, v ...interface{}) + type Op int + const OpBlink + const OpBold + const OpConcealed + const OpFastBlink + const OpFuzzy + const OpItalic + const OpReset + const OpReverse + const OpStrikethrough + const OpUnderscore