Added the logger-enabled flag

Abandons the middleware.Logger if false