Documentation ¶
Index ¶
Constants ¶
View Source
const ( RED = "\033[31m" YELLOW = "\033[33m" CYAN = "\033[36m" WHITE = "\033[37m" )
ANSI转义码颜色常量
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Level LogLevel LogPath string Formatter LogFormatter // contains filtered or unexported fields }
Logger 日志打印封装
func DefaultLogger ¶
func DefaultLogger() *Logger
func (*Logger) SetLogPath ¶
Click to show internal directories.
Click to hide internal directories.