npmci/ts/npmci.logging.ts

15 lines
380 B
TypeScript
Raw Permalink Normal View History

import * as plugins from './npmci.plugins.js';
2018-11-24 14:00:19 +00:00
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some Unit',
containerName: 'Some ContainerName',
environment: 'test',
runtime: 'node',
2021-05-14 18:11:12 +00:00
zone: 'Some Zone',
},
2018-11-24 14:00:19 +00:00
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());