ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
* 目录结构 ![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20181214180908.bmp) * config.ini ~~~ [log] ;1=Debug, 2=Info, 3=Error LogLevel = 1 ~~~ * main.go ~~~ package main import ( "winnielog" "errors" ) func main() { //初始化 winnielog.InitLog() winnielog.DebugLog("调试信息") winnielog.InfoLog("运行信息") winnielog.ErrorLog(errors.New("错误信息")) } ~~~ * 生成的日记文件 ![![](/D:/%E6%AD%A3%E5%BC%8F%E6%A1%8C%E9%9D%A2/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/book/Golang%E5%B7%A5%E4%BD%9C%E7%AC%94%E8%AE%B0/images/QQ%E6%88%AA%E5%9B%BE20181214181055.bmp)](images/screenshot_1593673539889.png)