Added logging middleware option

you might want to expand that snippet to include some sample logging code (and/or init code), just to make clear the intention