debugLogger

package
v1.68.15 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COLOR_RED    = "\033[31m"
	COLOR_GREEN  = "\033[32m"
	COLOR_YELLOW = "\033[33m"
	COLOR_BLUE   = "\033[34m"
	COLOR_RESET  = "\033[0m"
)
View Source
const ENV_TAG = "AID_DEBUG_LOG"

Variables

View Source
var Once once

Functions

func Error

func Error(v ...any)

func Errorf

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

func Fatal

func Fatal(v ...any)

func Fatalf

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

func Print

func Print(v ...any)

func Printf

func Printf(format string, v ...any)

Types

type DebugLogger

type DebugLogger struct {
	// contains filtered or unexported fields
}

func (*DebugLogger) Error

func (my *DebugLogger) Error(v ...any)

Error 输出错误日志

func (*DebugLogger) Print

func (my *DebugLogger) Print(v ...any)

Print 输出调试日志

type DebugLoggerAttr added in v1.68.15

type DebugLoggerAttr func()

func ColorBlue added in v1.68.15

func ColorBlue() DebugLoggerAttr

func ColorGreen added in v1.68.15

func ColorGreen() DebugLoggerAttr

func ColorRed added in v1.68.15

func ColorRed() DebugLoggerAttr

func ColorYellow added in v1.68.15

func ColorYellow() DebugLoggerAttr

Jump to

Keyboard shortcuts

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