[core][emitter] addressing nits.
[core][emitter] addressing nits.

[core][emitter] fix logging.

Wattpad/dd-agent,Wattpad/dd-agent,Wattpad/dd-agent,manolama/dd-agent,jyogi/purvar-agent,manolama/dd-agent,cberry777/dd-agent,cberry777/dd-agent,jyogi/purvar-agent,takus/dd-agent,jyogi/purvar-agent,takus/dd-agent,manolama/dd-agent,Wattpad/dd-agent,cberry777/dd-agent,cberry777/dd-agent,Wattpad/dd-agent,takus/dd-agent,manolama/dd-agent,jyogi/purvar-agent,jyogi/purvar-agent,manolama/dd-agent,takus/dd-agent,takus/dd-agent,cberry777/dd-agent