The commonlogger middleware.