Use a real logger. Maintain compatibility with MfDebugger

For 5.0, see #113