feat(smartmigration): add initial smartmigration package with MongoDB and S3 migration runner
This commit is contained in:
19
ts/logger.ts
Normal file
19
ts/logger.ts
Normal 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());
|
||||
Reference in New Issue
Block a user