feat(smartmigration): add initial smartmigration package with MongoDB and S3 migration runner

This commit is contained in:
2026-04-07 17:35:05 +00:00
commit d96c6bcee8
33 changed files with 11443 additions and 0 deletions

19
ts/logger.ts Normal file
View File

@@ -0,0 +1,19 @@
import * as plugins from './plugins.js';
/**
* Module-scoped Smartlog singleton. Users may pass their own logger via
* `ISmartMigrationOptions.logger` to override this default.
*/
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Lossless GmbH',
companyunit: 'push.rocks',
containerName: 'smartmigration',
environment: 'production',
runtime: 'node',
zone: 'pushrocks',
},
minimumLogLevel: 'info',
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());