if you have a client script attached to a suitelet...
# suitescript
c
if you have a client script attached to a suitelet you can use any client side logic including console.log. Suitelets are serverside though so you have to use the server log which is log.debug or nlapiLogExecution if 1.0