Move logging interface to a separate class