Add console.log support on Sample for debugging

Reviewed by: Daker Fernandes Pinheiro