Logger middleware supports pattern