Skip to main content
1-Visitor
June 1, 2017
Question

Print message at the start of the MS Log

  • June 1, 2017
  • 1 reply
  • 1107 views

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

15-Moonstone
June 1, 2017

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