Documentation ¶
Overview ¶
日志.
Example ¶
Debug("hello world.") Info("hello world.") Warn("hello world.") Error("hello world.") Fatal("hello world.") SetLogLevel(INFO) SetProjectName("TEST", F_WARN|F_FATAL) Debug("hello world.") Info("hello world.") Warn("hello world.") Error("hello world.") Fatal("hello world.") return
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetProjectName ¶
允许日志记录到文件中. @name - 项目名. @flag - 标志, 表示哪个日志级别需要记录.
Types ¶
Click to show internal directories.
Click to hide internal directories.