Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi,
My logger setting in config file is
"logger": {
"level": "DEBUG",
"audit_target": "r:/_tw_logs/audit.log",
"publish_directory": "r:/_tw_logs/",
"publish_level": "DEBUG",
"max_file_storage": "20000000",
"auto_flush": true
},
The audit.log does not have the same content as wsems_log1.log while they have the same log level. Is there any way to configure 2 different log files for AUDIT and DEBUG level?
My Bests,
Hung Tran
Solved! Go to Solution.
Hello @htran-21 ,
There are only two log files - the EMS log file, which contains the same content as what's output to stdout, and the 'audit log', which only contains 'AUDIT' level log data and can be written to a file:// or http:// based URI (controlled by audit_target). publish_level and publish_directory control the main log file - if publish_level is different than level, then one level of log messages will be sent to stdout while another will be written to a file (so you could have info to stdout but trace to your log file). The above json attributes are all on the logger parent in config.json.
Hello @htran-21 ,
There are only two log files - the EMS log file, which contains the same content as what's output to stdout, and the 'audit log', which only contains 'AUDIT' level log data and can be written to a file:// or http:// based URI (controlled by audit_target). publish_level and publish_directory control the main log file - if publish_level is different than level, then one level of log messages will be sent to stdout while another will be written to a file (so you could have info to stdout but trace to your log file). The above json attributes are all on the logger parent in config.json.
Hi @htran-21.
If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon