Skip to main content
15-Moonstone
October 8, 2020
Solved

audit_target does not work

  • October 8, 2020
  • 2 replies
  • 1261 views

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

 

 

Best answer by Ciprian-Traian

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.

2 replies

5-Regular Member
October 14, 2020

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.

Support
October 26, 2020

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