tswatch/ts/tswatch.logging.ts

16 lines
411 B
TypeScript
Raw Normal View History

2019-05-08 09:14:57 +00:00
import * as plugins from './tswatch.plugins';
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
2019-05-08 09:16:24 +00:00
environment: 'local',
2019-05-08 09:14:57 +00:00
runtime: 'node',
zone: 'gitzone'
},
minimumLogLevel: 'silly'
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());