Update Object log method

RMID #56: YapLog object call with Macro is cleaner and dont add memory
leak.