Question


PWC
IT
Last activity: 26 Mar 2018 3:32 EDT
File RuntimeLog.txt in Windows Event Viewer
Hi,
can you set RuntimeLog.txt to a specific Windows Event Viewer folder?
Thanks
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Pegasystems Inc.
US
You can change the fileName attribute in the RuntimeConfig.xml for the OpenSpan.Diagnostics.Publishers.FilePublisher to point to a specific path. The path should be local to the machine as it writes lots of data.
<publisher mode="off" trace_mode="on" exception_mode="on" assembly="OpenSpan" type="OpenSpan.Diagnostics.Publishers.FilePublisher" fileName="C:\Logs\RuntimeLog.txt" filesToKeep="1" initMode="ClearLog" />


Pegasystems Inc.
US
http://help.openspan.com/80/Platform_Configuration/OpenSpan_Runtime_Exe_Config_File.htm
http://help.openspan.com/80/Platform_Configuration/RuntimeConfigXML.htm#DiagnosticsPublishers


PWC
IT
I have already seen this link but, in OpenSpan.Runtime.exe.config file, where do you need to modify or insert the event viewer path?
In attached the OpenSpan.Runtime.exe.config file.
Thanks


Pegasystems Inc.
US
What folder are you trying to write to?


Pegasystems Inc.
US
The Runtimelog does not write to an Event Viewer folder. It is a text file - not an eventlog file.


PWC
IT
I would like the Runtimelog file not to be present in AppData, but in a specific folder.
Accepted Solution


Pegasystems Inc.
US
You can change the fileName attribute in the RuntimeConfig.xml for the OpenSpan.Diagnostics.Publishers.FilePublisher to point to a specific path. The path should be local to the machine as it writes lots of data.
<publisher mode="off" trace_mode="on" exception_mode="on" assembly="OpenSpan" type="OpenSpan.Diagnostics.Publishers.FilePublisher" fileName="C:\Logs\RuntimeLog.txt" filesToKeep="1" initMode="ClearLog" />


PWC
IT
If I put as path "C:\Windows\System32\winevt\Logs\RuntimeLog.txt", the file RuntimeLog.txt is not created. But for example on the desktop it was created correctly.


Pegasystems Inc.
US
You can also change the location to one of 3 places by editing the CommonConfig.xml file in C:\ProgramData\OpenSpan. Here are the locations available.