@swirepay-developer/common-logging-nodejs
v1.0.4
Published
Swirepay Common Logging SDK for Node.js
Maintainers
Readme
Swirepay Common Logging - Node.js SDK
Installation
npm install @swirepay/common-logging-nodejsQuick Start
const { initializeLogger, getLogger } = require('@swirepay/common-logging-nodejs');
// OpenTelemetry is automatically initialized
initializeLogger({
environment: 'staging',
serviceName: 'my-service',
serviceVersion: '1.0.0',
});
const logger = getLogger();
logger.info('Service started');Complete Documentation
See ../USAGE_GUIDE.md for complete examples including:
- Basic logging
- Express.js integration
- API call logging
- Request logging
- Webhook logging
- TypeScript examples
License
Proprietary - Swirepay
