Node.js agent uses debug framework for output log, and your can active the log before you deploy application currently. Note: Node.js Agent only support that output the log to console currently.
To active all level log, You should add following variable into environment variables before you deploy application.
DEBUG=skyapm:*
Maybe you just want to active error level log, That’s fine, just add the variable into environment variables. The Agent support four log level: debug info warn error currently.
DEBUG=skyapm:error