Lal 368 - Added abstraction for the logger

Those functions are falsely synchronous. This should be modified as we mentionned yesterday.