]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
4
authorqydysky <qydysky@foxmail.com>
Mon, 14 Sep 2020 13:58:57 +0000 (21:58 +0800)
committerqydysky <qydysky@foxmail.com>
Mon, 14 Sep 2020 13:58:57 +0000 (21:58 +0800)
.gitignore
Msg.go
README.md

index 727bc05f8306a8be3a5a8d24ed245bc878508c46..1fbfd2b94f3f2a8dbeeb60372b0baedb72e1ddfe 100644 (file)
@@ -1 +1,2 @@
 .directory
+demo/danmu.log
diff --git a/Msg.go b/Msg.go
index 307adac767fca8c5926f82709dc11e5ef033dca6..bd6e820645cf13c5a3ffe2403ef8cbda55436e19 100644 (file)
--- a/Msg.go
+++ b/Msg.go
@@ -10,7 +10,7 @@ import (
        数据为WS_OP_MESSAGE类型的
 */
 
-var msglog = p.Logf().New().Level(0)
+var msglog = p.Logf().New().Open("danmu.log").Level(0)
 
 func Msg(b []byte, compress bool) {
        if compress {
index 5a06da5bedb6928eb389e2a52b2bfa5aeca8fd49..e6078119d439557cecfaf4801f4649cdead46ffa 100644 (file)
--- a/README.md
+++ b/README.md
@@ -38,6 +38,7 @@ INFO:  2020/09/14 21:07:09 [百合花业余植物学家 : 要是等流歌来可
 INFO:  2020/09/14 21:07:09 [单机 第70名]
 INFO:  2020/09/14 21:07:11 [红脸的野郎 : 小姐姐;爱玩啊]
 INFO:  2020/09/14 21:07:11 [三月三日三重樱 : 大威天龙!]
-ctrl+c退出,
+
+ctrl+c退出,弹幕会同时记录到文件danmu.log中
 ```
-更多内容详见注释
\ No newline at end of file
+更多内容详见注释,如有疑问请发issues
\ No newline at end of file