Fix function name.
Fix log option processing.
Fix log unit tests.