Setup logging to both application cache and syslog.