Make logging configruable

I changed the mapper to read the options so logging can be disabled and the logging level can be changed.