26.11.2015, 06:59
You can override alert function in user function library, then all scripts will use new function instead of old. You just have to implement syslogsend.
Code:
oldalert = alert
alert = function(text, ...)
text = tostring(text) or ''
text = string.format(text, ...)
syslogsend(text)
oldalert(text)
end