cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

audit_target does not work

htran-21
15-Moonstone

audit_target does not work

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

 

 

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

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.

slangley
23-Emerald II
(To:htran-21)

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

Announcements


Top Tags