fixed middleware example logger