logger middleware only for development env