How to use the @cdm-logger/client.logger.trace 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 / servers / frontend-server / src / config / apollo-client.ts View on Github external
connectionCallback: async (error) => {
                if (error) {
                    logger.trace('[connectionCallback error] %j', error);
                    // error.message has to match what the server returns.
                    if ((error as any).message === 'TokenExpired') {
                        console.log('onTokenError about to call');
                        // Reset the WS connection for it to carry the new JWT.
                        (wsLink as any).subscriptionClient.close(false, false);
                    }
                }
            },
        },

@cdm-logger/client

Universal - Logger

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis