PDI-9393 : Complete logging backward compatibility with 4.x