ssr-engine icon indicating copy to clipboard operation
ssr-engine copied to clipboard

Server-side rendering logging abstraction

Open jwahyoung opened this issue 8 years ago • 2 comments

Based on the initial codebase written by @niieani, Aurelia server rendering will apparently look for console.debug.

See https://github.com/aurelia/skeleton-navigation/blob/ssr/skeleton-typescript-webpack-experimental/server/index.ts#L33.

If console.debug isn't used by the bootstrapper, we can probably get rid of this and rely upon Aurelia's logger. We should create a new server-based logging implementation (using the aurelia-logging interface), such as logging-server or logging-nodejs and tie that in to the server rendering pipeline via the injection container.

jwahyoung avatar Mar 09 '17 22:03 jwahyoung

Another way to solve this would be to add a console.debug polyfill to pal-nodejs.

niieani avatar Mar 10 '17 18:03 niieani

@jedd-ahyoung Would you be interested in submitting a polyfill for console.debug to the pal-nodejs repo?

EisenbergEffect avatar Feb 24 '18 07:02 EisenbergEffect