tswatch/ts/tswatch.logging.ts

16 lines
416 B
TypeScript
Raw Normal View History

2022-03-14 21:17:36 +01:00
import * as plugins from './tswatch.plugins.js';
2019-05-08 11:14:57 +02:00
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
2019-05-08 11:16:24 +02:00
environment: 'local',
2019-05-08 11:14:57 +02:00
runtime: 'node',
2020-07-04 10:45:56 +00:00
zone: 'gitzone',
2019-05-08 11:14:57 +02:00
},
2020-07-04 10:45:56 +00:00
minimumLogLevel: 'silly',
2019-05-08 11:14:57 +02:00
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());