Revamp logging configuration.
Add wrapper for execution by cron.