From 378b8c4860c78aaaa3ea5ddd56405ef12843c9a3 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Tue, 23 Jan 2018 15:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E7=82=B9=E6=9B=B4=E6=96=B0=EF=BC=9A20?= =?UTF-8?q?18-01-23=2015:56:23?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- common/logger/errors.log | 2 ++ common/logger/log_test.go | 4 ++-- utils/{idea => jbls}/Makefile | 0 utils/{idea => jbls}/main.go | 0 utils/{idea => jbls}/rsa.key | 0 6 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 common/logger/errors.log rename utils/{idea => jbls}/Makefile (100%) rename utils/{idea => jbls}/main.go (100%) rename utils/{idea => jbls}/rsa.key (100%) diff --git a/README.md b/README.md index fb87940..06fe432 100644 --- a/README.md +++ b/README.md @@ -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) -- [JetBrainsLicenseServer](utils/idea): JetBrains License Server, Just for test and study, Please support genuine. \ No newline at end of file +- [jbls](utils/jbls): JetBrains License Server, Just for test and study, Please support genuine. \ No newline at end of file diff --git a/common/logger/errors.log b/common/logger/errors.log new file mode 100644 index 0000000..3c3f2fa --- /dev/null +++ b/common/logger/errors.log @@ -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: 欢迎关注留言 diff --git a/common/logger/log_test.go b/common/logger/log_test.go index 456ffd7..352ab03 100644 --- a/common/logger/log_test.go +++ b/common/logger/log_test.go @@ -23,7 +23,7 @@ func init() { Error = log.New(io.MultiWriter(os.Stderr, errFile), "Error:", log.Ldate|log.Ltime|log.Lshortfile) } func TestLog(t *testing.T) { - Info.Println("飞雪无情的博客:", "http://www.flysnow.org") - Warning.Printf("飞雪无情的微信公众号:%s\n", "flysnow_org") + Info.Println("ehlxr博客:", "https://ehlxr.me") + Warning.Printf("ehlxr主页:%s\n", "https://ehlxr.top") Error.Println("欢迎关注留言") } diff --git a/utils/idea/Makefile b/utils/jbls/Makefile similarity index 100% rename from utils/idea/Makefile rename to utils/jbls/Makefile diff --git a/utils/idea/main.go b/utils/jbls/main.go similarity index 100% rename from utils/idea/main.go rename to utils/jbls/main.go diff --git a/utils/idea/rsa.key b/utils/jbls/rsa.key similarity index 100% rename from utils/idea/rsa.key rename to utils/jbls/rsa.key