Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
NewLogger
@param flag e.g. os.O_CREATE|os.O_WRONLY|os.O_APPEND
Functions ¶
func NewFileLogger ¶
NewFileLogger
@param logPath (1) 文件不存在,会生成文件和父目录;
(2) 文件存在,新的内容会 append.
@param prefix e.g. "[TEST] " @param perm e.g. 0666 || 0644
func NewStdoutLogger ¶ added in v3.0.106
NewStdoutLogger 输出到控制台(os.Stdout).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.