npmci/ts/npmci.logging.ts

15 lines
377 B
TypeScript
Raw Normal View History

2018-11-24 14:00:19 +00:00
import * as plugins from './npmci.plugins';
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());