tools/ts/tools.logging.ts

16 lines
411 B
TypeScript
Raw Normal View History

2019-06-17 08:26:26 +00:00
import * as plugins from './tools.plugins';
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
environment: 'local',
runtime: 'node',
2020-10-05 10:33:08 +00:00
zone: 'gitzone',
2019-06-17 08:26:26 +00:00
},
2020-10-05 10:33:08 +00:00
minimumLogLevel: 'silly',
2019-06-17 08:26:26 +00:00
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());