logmms
v1.0.6
Published
log service for motechat
Downloads
1
Readme
v1.0.5
- Fix the bug of search function when db is empty
v1.0.3
- Change acc field to uid in db
- Add search count function
- Add search offset option
v1.0.0
- First release
- need to apt install sqlite3
API
Save
JSON: {"cmd":"save","msg":"(msg)","tag":"(tag)","uid":"(uid)"}
Example 1:
{"cmd":"save","msg":"2019/6/13 14:20:20 open file!","tag":"op"}
Example 2:
{"cmd":"save","msg":"2019/6/13 14:20:20 open file!","uid":"zGH1Jkhx3"}
Search
JSON: {"cmd":"search","srhtype":"(search type)","srhtext":"(search text)","option":"(query option) ,"queryfield":"(query field)"}
Example 1:
{"cmd":"search","srhtype":"tag","srhtext":"op","option":"last20","queryfield":"logid,time,msg,tag"}
<<<<<<< HEAD
Example 2:
{"cmd":"search","srhtype":"uid","srhtext":"zGH1Jkhx3","option":"last20","queryfield":"logid,time,msg,tag"}
Example 3:
{"cmd":"search","srhtype":"uid","srhtext":"zGH1Jkhx3","option":"last20offset10","queryfield":"logid,time,msg,tag"}
Example 4:
{"cmd":"search","srhtype":"uid","srhtext":"zGH1Jkhx3","option":"count","queryfield":""}
Note:
- search type: uid, tag, time, msg
- query option: top, last, top--offset--, last--offset--, count
- query field: including logid, time, uid, msg, tag
5d49ea4dbf0df97e8a09fc426a2771d99ad79ffa