Provide a function for using an external logger