Lal 368 - Added abstraction for the logger

I would then suggest to rename this message to "publishMessageSync" to matche the rest of our apis.
And I think the method should return a status object indicating whether the call succeeded, and what failed in the contrary.