How to use the @cdm-logger/server.logger.error function in @cdm-logger/server

To help you get started, we’ve selected a few @cdm-logger/server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cdmbase / fullstack-pro / servers / backend-server / src / index.ts View on Github external
module.hot.status(event => {
        if (event === 'abort' || event === 'fail') {
            logger.error('HMR error status: ' + event);
            // Signal webpack.run.js to do full-reload of the back-end
            service.gracefulShutdown(event);
        }
        // adddintionally when event is idle due to external modules
        if (event === 'idle') {
            service.gracefulShutdown(event);
        }
    });
    module.hot.accept();
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / app.ts View on Github external
process.on('uncaughtException', ex => {
    logger.error(ex);
    process.exit(1);
});
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / server.ts View on Github external
module.hot.dispose(() => {
        try {
            if (server) {
                server.close();
            }
        } catch (error) {
            logger.error(error.stack);
        }
    });
    module.hot.accept(['./website'], () => {
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / app.ts View on Github external
process.on('unhandledRejection', reason => {
    logger.error(reason);
});
github cdmbase / fullstack-pro / servers / backend-server / src / index.ts View on Github external
process.on('unhandledRejection', reason => {
    logger.error(reason);
});
const service = new Service();
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / website.tsx View on Github external
export const websiteMiddleware = async (req, res, next) => {
    try {
        if (req.url.indexOf('.') < 0 && __SSR__) {
            return renderServerSide(req, res);
        } else {
            return next();
        }
    } catch (e) {
        logger.error('RENDERING ERROR:', e);
        return next(e);
    }
};
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / website.tsx View on Github external
const page = (
                
            );
            res.send(`\n${ReactDOMServer.renderToStaticMarkup(page)}`);
            res.end();
        }
    } catch (err) {
        logger.error('SERVER SIDE RENDER failed due to (%j) ', err.message);
        logger.debug(err);
    }
}
export const websiteMiddleware = async (req, res, next) => {
github cdmbase / fullstack-pro / servers / backend-server / src / api / subscriptions.ts View on Github external
module.hot.dispose(data => {
        try {
            (data as any).subscriptionServer = subscriptionServer;
        } catch (error) {
            logger.error(error.stack);
        }
    });
}
github cdmbase / fullstack-pro / servers / backend-server / src / api-server.ts View on Github external
module.hot.accept(['./api/subscriptions'], () => {
        try {
            addGraphQLSubscriptions(server);
        } catch (error) {
            logger.error(error.stack);
        }
    });

@cdm-logger/server

Universal - Logger

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis