Allow disabling logging to mongo

or "servlet only"