Implements request logging