1.0.2 • Published 4 years ago

@motebus/ei-log v1.0.2

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

Enronment Parameters

  1. APP_NAME: the name of app
  2. DC: the MMA of device center (dc)
  3. IOC: the MMA of IOC center (ioc)
  4. MOTEBUS_GATEWAY: the ip of motebus gateway
  5. LOGDB_PATH: the physical path and file name of data base, ( for example: /usr/log/log.db )
  6. EI_NAME: the name of this device

Command

Save

CLI: save (message) (tag) (account)

JSON: {"cmd":"save","msg":"(msg)","tag":"(tag)","acc":"(account)"}

Example:
1.	save "Hello log service!"
2.	save "2019/6/13 14:20:20 open file!" op 
3.	{"cmd":"save","msg":"2019/6/13 14:20:20 open file!","tag":"op"}

Search

CLI: search (search type) (search text) (query option) -f (query fields)

JSON: {"cmd":"search","srhtype":"(search type)","srhtext":"(search text)","option":"(query option) ,"queryfield":"(query field)"}

Example:
1.	search last20
2.	search tag op -f logid,time,msg
3.	{"cmd":"search","srhtype":"tag","srhtext":"op","option":"last20","queryfield":"logid,time,msg,tag"}
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago