Add logger middleware.
Assert on logger middleware.