use custom logger middleware