How to use the @cdm-logger/client.logger.child function in @cdm-logger/client

To help you get started, we’ve selected a few @cdm-logger/client 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 / packages / sample-client-react / src / containers / ServerCounter.tsx View on Github external
props: ({ countData }: any) => {
        const newlog = logger.child({ childName: 'UIController' });
        newlog.debug('count data : (%j)', countData);
        return {
            subscribeToCount: params => {
                // logger.debug('count subscript data (%j)', params);
                return countData.subscribeToMore({
                    document: COUNT_SUBSCRIPTION,
                    variables: {},
                    updateQuery: (prev: any, { subscriptionData }) => {
                        const payload = subscriptionData.data && subscriptionData.data.subscribeToWorkspace;
                        if (!payload) {
                            return prev;
                        }
                        return payload;
                    },
                });
            },

@cdm-logger/client

Universal - Logger

MIT
Latest version published 4 months ago

Package Health Score

55 / 100
Full package analysis