Re-factored logging interface.