Add configuration option to disable logging

Fix typo

Fix parameter typo