Log file does not log the JavaScript console.log information

I do use HTML producer to create the animation. I use JavaScript to manipulate the data and use CSS for the animation. The log file only logs the command the Casparcg server received but not the JavaScript's console.log debug information. It prints the JavaScript logs on the Casparcg server console but not on the log file. Is there a way that i can configure to log all the information printed on the Casparcg server console into the log file? Many thanks.