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