# log **Repository Path**: Balze/log ## Basic Information - **Project Name**: log - **Description**: 六哥log - **Primary Language**: Go - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-30 - **Last Updated**: 2021-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # log #### 介绍 log #### 引用包 ```go import ( "github.com/ha666/log" ) ``` #### 写入控制台 ```go log.Init(&log.Config{ Host: host, Stdout: true, IgnorePath: []string{`/\S+/v2-9[0-9\-]*/`}, }) ``` #### 写入文件 ```go log.Init(&log.Config{ Host: host, Dir: "/Users/ha666/test/v2-9/lass", IgnorePath: []string{`/\S+/v2-9[0-9\-]*/`}, }) ``` #### 写日志 ```go log.Info("ajsdlf") log.Info("ajsdf:%s", "abc") log.Error("sajdf:%d", 234) ``` ####