possible to pass a user defined logger