How to use the @cdm-logger/server.logger.debug 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 / server_old.ts View on Github external
module.hot.accept(['./middleware/graphql'], () => {
        logger.debug('loading ./middleware/graphql');
    });
    // module.hot.accept(['./api/subscriptions'], () => {
github cdmbase / fullstack-pro / servers / backend-server / src / graphql-server.ts View on Github external
onConnect: async (connectionParams, webSocket) => {
                logger.debug(`Subscription client connected using built-in SubscriptionServer.`);
                const pureContext = await modules.createContext(connectionParams, webSocket);
                const contextServices = await serviceContext(connectionParams, webSocket);
                return {
                    ...contextServices,
                    ...pureContext,
                    preferences: defaultPreferences,
                    update: updateContainers,
                };
            },
            // onDisconnect: () => {},
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / server.ts View on Github external
module.hot.accept(['./website'], () => {
        logger.debug('...reloading middleware');
    });
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / website.tsx View on Github external
);
            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-server.ts View on Github external
module.hot.accept(['./middleware/graphql'], () => {
        logger.debug('loading ./middleware/graphql');
    });
    module.hot.accept(['./api/subscriptions'], () => {
github cdmbase / fullstack-pro / servers / backend-server / src / api / subscriptions.ts View on Github external
const addGraphQLSubscriptions = httpServer => {
    if (module.hot && module.hot.data) {
        const prevServer = (module.hot.data as any).subscriptionServer;
        if (prevServer && prevServer.wsServer) {
            logger.debug('Reloading the subscription server.');
            prevServer.wsServer.close(() => {
                addSubscriptions(httpServer);
            });
        }
    } else {
        addSubscriptions(httpServer);
    }
};

@cdm-logger/server

Universal - Logger

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis