Added external logger support.