added support for Logger instances as an alternative to log paths