Logging in RouterOS is a mystery.
Something are logged and some other not.
Example.
Did an upgrade of hAP Lite from 6.45.1 to 6.45.2.
Nothing in the log that it was upgraded, nor that it rebooted during process.
If you post the script, I may be able to help you with it to see what is wrong.
Have some experience from logging and script.
See Splunk for MikroTik where I do use several script to log data.
http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-3-3-graphing-everything/121810/1