[](https://codecov.io/gh/qydysky/bili_danmu)
[](https://libraries.io/go/github.com%2Fqydysky%2Fbili_danmu)
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fqydysky%2Fbili_danmu?ref=badge_small)
+
+


```json
{
"日志文件输出-help": "为空时不保存日志",
- "日志文件输出": "danmu.log",
+ "日志文件输出": "",
"指定弹幕重启录制":[
{
"uid":"29183321",
"直播流清晰度": 10000,
"直播流类型-help": "flv,fmp4,flvH,fmp4H,带H后缀的为Hevc格式编码",
"直播流类型": "flv",
- "直播流保存位置": "./live",
+ "直播流保存位置": "/live",
"Web服务地址":"0.0.0.0:10000",
"直播Web服务路径":"/web/",
"直播Web可以发送弹幕":false,
"cookie加密公钥": "public.pem",
"cookie解密私钥": "private.pem",
"debug模式-help":"在/debug/pprof/启用调试",
- "debug模式":false,
+ "debug模式":true,
"保存弹幕至db": {
- "dbname": "mysql",
- "url":"root:root@(192.168.31.103:10836)/test",
+ "dbname": "postgres",
+ "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable",
"字段help":"time.Now().Format(time.DateTime), time.Now().Unix(), item.msg, item.color, item.auth, item.uid, item.roomid",
"create":"create table danmu (created varchar(20), createdunix varchar(20), msg varchar(100), color varchar(20), auth varchar(50), uid varchar(30), roomid varchar(30))",
"insert":"insert into danmu (created, createdunix, msg, color, auth, uid, roomid) values ({Date},{Unix},{Msg},{Color},{Auth},{Uid},{Roomid})"
+ },
+ "保存日志至db":{
+ "dbname": "postgres",
+ "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable",
+ "字段help":"$1:Prefix $2:Base $3:Msgs, use ? or $%d not placeholder",
+ "create":"create table log (created timestamp, Prefix varchar(10), Base varchar(30), Msgs varchar(500))",
+ "insert":"insert into log (created, Prefix, Base, Msgs) values (now(),$1,$2,$3)"
}
}
```