Move logging configuration into its own class.