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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Sending Garbage Collection Logs To Another Folder

KC_11253190
4-Participant

Sending Garbage Collection Logs To Another Folder

Version: Windchill 12.0

 

Use Case: I am seeking to reroute the garbage collection logs to their own folder so the log folder only contains the other logs such as the method server and server manager logs.


Description:

I am looking to be able to keep my windchill logs in the log folder but re route the garbage collection logs to their own folder, is this possible? I assume there is a site.xconf property I can set? I am on windchill 12.027 with plans to upgrade in the future.

ACCEPTED SOLUTION

Accepted Solutions

Referencing article:
https://www.ptc.com/en/support/article/CS73309

 

For Windchill 12.0 or above refer to property default:  wt.manager.cmd.MethodServer.gc.log.args=-Xlog\:gc*\:file\=$(wt.logs.dir)$(dir.sep){1}-{2,date,yyMMddHHmmssSSS}-{0}-GC.log\:time\:\:filecount\=4,filesize\=128m

 

It looks like if you replace the variable $(wt.logs.dir) it should route to another location.

View solution in original post

3 REPLIES 3

Referencing article:
https://www.ptc.com/en/support/article/CS73309

 

For Windchill 12.0 or above refer to property default:  wt.manager.cmd.MethodServer.gc.log.args=-Xlog\:gc*\:file\=$(wt.logs.dir)$(dir.sep){1}-{2,date,yyMMddHHmmssSSS}-{0}-GC.log\:time\:\:filecount\=4,filesize\=128m

 

It looks like if you replace the variable $(wt.logs.dir) it should route to another location.

This looks to be correct.

This is correct, just keep in mind the $(wt.logs.dir)$(dir.sep) can be replaced with a static file path but the slashes need to be escaped like this:  "C:\\temp\\logs\\".

Announcements


Top Tags