Refactored logging and exposed level in adapter options.