How to use the @cdm-logger/server.logger.info 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 / service.ts View on Github external
public async gracefulShutdown(signal) {
        try {
            logger.info(`${signal} received. Closing connections, stopping server`);
            await this.app.cleanup();
            logger.info('Shutting down');
        } catch (err) {
            logger.error('Error during graceful shutdown');
            logger.error(err);
        } finally {
            process.exit(0);
        }
    }
}
github cdmbase / fullstack-pro / servers / backend-server / src / service.ts View on Github external
public async gracefulShutdown(signal) {
        try {
            logger.info(`${signal} received. Closing connections, stopping server`);
            await this.app.cleanup();
            logger.info('Shutting down');
        } catch (err) {
            logger.error('Error during graceful shutdown');
            logger.error(err);
        } finally {
            process.exit(0);
        }
    }
}
github cdmbase / fullstack-pro / servers / backend-server / src / service.ts View on Github external
public async start() {
        await this.app.httpServer.startListening(serverPort);
        logger.info(`API is now running on port ${serverPort}`);
    }
github cdmbase / fullstack-pro / servers / frontend-server / src / backend / server.ts View on Github external
server.listen(serverPort, () => {
    logger.info(`Client Server is now running on port ${serverPort}`);
});
github cdmbase / fullstack-pro / servers / backend-server / src / api-server.ts View on Github external
server.listen(serverPort, () => {
    logger.info(`API is now running on port ${serverPort}`);
});
github cdmbase / fullstack-pro / servers / backend-server / src / server_old.ts View on Github external
httpServer.listen(serverPort, () => {
        logger.info(`API is now running on port ${serverPort}`);
        resolve(httpServer);
    });
});

@cdm-logger/server

Universal - Logger

MIT
Latest version published 5 months ago

Package Health Score

53 / 100
Full package analysis