Apply deprecate macro and LOG