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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Print message at the start of the MS Log

mlokesh-2
4-Participant

Print message at the start of the MS Log

Hello Windchill Gurus,

We have a requirement to print some Environment Variables at the beginning of the MS Log. I would like to know the MS Log Writer classes/methods to follow the lead to write our custom line.

Any quick help regarding this is greatly appreciated. Thanks all for help in advance.

Thanks & Best Regards,

Mahesh KL

1 REPLY 1

Hi,

Log4j handles the notation ${env:VARIABLE}, but only with a version greater thant 2.0

No luck, PDMLink uses the 1.2.17, even in PDMLink 11.


A solution is to create your own patter layout, like this : https://fw-geekycoder.blogspot.fr/2010/07/creating-log4j-custom-patternlayout.html


Top Tags