More formatting on logger middleware