aurelia / ssr-engine

The server-side rendering engine for Aurelia.
MIT License
16 stars 6 forks source link

Server-side rendering logging abstraction #2

Open jwahyoung opened 7 years ago

jwahyoung commented 7 years ago

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.

niieani commented 7 years ago

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

EisenbergEffect commented 6 years ago

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