1.0.6 • Published 3 years ago

logmms v1.0.6

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

v1.0.5

  1. Fix the bug of search function when db is empty

v1.0.3

  1. Change acc field to uid in db
  2. Add search count function
  3. Add search offset option

v1.0.0

  1. First release
  2. 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