Add logger middleware