added data length in logs

by adding a number argument in calling emit.js, we can limit the length
of the data spewed out.