smartdaemon/ts/smartdamon.logging.ts

16 lines
420 B
TypeScript
Raw Normal View History

2022-10-19 17:27:42 +00:00
import * as plugins from './smartdaemon.plugins.js';
2019-08-28 09:55:14 +00:00
export const logger = new plugins.smartlog.Smartlog({
logContext: {
company: 'Some Company',
companyunit: 'Some CompanyUnit',
containerName: 'Some Containername',
environment: 'local',
runtime: 'node',
2021-01-30 00:41:40 +00:00
zone: 'gitzone',
2019-08-28 09:55:14 +00:00
},
2021-01-30 00:41:40 +00:00
minimumLogLevel: 'silly',
2019-08-28 09:55:14 +00:00
});
logger.addLogDestination(new plugins.smartlogDestinationLocal.DestinationLocal());