swaechter / angularj-universal

This project provides an experimental server side render for Spring Boot and Angular 5 based on the J2V8 library
138 stars 15 forks source link

Add a J2V8 logger hook to capture all output #3

Closed swaechter closed 7 years ago

swaechter commented 7 years ago

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.

swaechter commented 7 years ago

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).