Add a logger hook in the J2V8 engine and capture all output (Normal output, warnings, errors and exceptions). The output is not capturable via System.out and hence the render engine has to provide logging methods.
Capturing all J2V8 output won't be possible without overriding console/print (Hack), so I won't implement that (Exceptions are already useful enough, so there is no real need anymore).
Add a logger hook in the J2V8 engine and capture all output (Normal output, warnings, errors and exceptions). The output is not capturable via System.out and hence the render engine has to provide logging methods.