Reviewed the logging extensions from Manfred (and tried to understand it :) - my changes are not yet tested.