This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Object Logs - How to log changes only?
#8
(13.03.2018, 11:28)admin Wrote: From event script:
Code:
time, utime = os.microtime()
logtime = time + utime / 1000000

db:insert('objectlog', {
 src = event.srcraw,
 address = event.dstraw,
 logtime = logtime,
 datahex = event.datahex,
 eventtype = event.type:gsub('group', ''),
 sender = event.sender or '',
})
Perfect! Thank you.
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259
Reply


Messages In This Thread
RE: Object Logs - How to log changes only? - by Thomas - 13.03.2018, 12:29

Forum Jump: