站点更新:2018-01-23 15:56:23
This commit is contained in:
parent
f50a22c943
commit
378b8c4860
@ -3,4 +3,4 @@ common utils for golang
|
|||||||
|
|
||||||
- [log](utils/log):golang log library base [logrus](https://github.com/sirupsen/logrus) and [logrus-prefixed-formatter](https://github.com/x-cray/logrus-prefixed-formatter)
|
- [log](utils/log):golang log library base [logrus](https://github.com/sirupsen/logrus) and [logrus-prefixed-formatter](https://github.com/x-cray/logrus-prefixed-formatter)
|
||||||
|
|
||||||
- [JetBrainsLicenseServer](utils/idea): JetBrains License Server, Just for test and study, Please support genuine.
|
- [jbls](utils/jbls): JetBrains License Server, Just for test and study, Please support genuine.
|
2
common/logger/errors.log
Normal file
2
common/logger/errors.log
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Error:2018/01/23 15:55:27 log_test.go:28: 欢迎关注留言
|
||||||
|
Error:2018/01/23 15:55:41 log_test.go:28: 欢迎关注留言
|
@ -23,7 +23,7 @@ func init() {
|
|||||||
Error = log.New(io.MultiWriter(os.Stderr, errFile), "Error:", log.Ldate|log.Ltime|log.Lshortfile)
|
Error = log.New(io.MultiWriter(os.Stderr, errFile), "Error:", log.Ldate|log.Ltime|log.Lshortfile)
|
||||||
}
|
}
|
||||||
func TestLog(t *testing.T) {
|
func TestLog(t *testing.T) {
|
||||||
Info.Println("飞雪无情的博客:", "http://www.flysnow.org")
|
Info.Println("ehlxr博客:", "https://ehlxr.me")
|
||||||
Warning.Printf("飞雪无情的微信公众号:%s\n", "flysnow_org")
|
Warning.Printf("ehlxr主页:%s\n", "https://ehlxr.top")
|
||||||
Error.Println("欢迎关注留言")
|
Error.Println("欢迎关注留言")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user