Automate logging setup