Added logging middleware option

Will do