Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLogger ¶
type CLogger struct { ConsoleOut io.Writer FileOut io.Writer Prefix string Color TypeColor Style TypeStyle // contains filtered or unexported fields }
CLogger 日志记录器
func NewLogger ¶
func NewLogger(console io.Writer, file io.Writer, prefix string, color TypeColor, style ...TypeStyle) *CLogger
NewLogger 构造日志记录器
func (*CLogger) SetConsoleOut ¶
SetConsoleOut 设置控制台输出
Click to show internal directories.
Click to hide internal directories.