Re: Geode Version in the logs

2019-01-03 Thread Patrick Rhomberg
You can write a custom log4j2.xml to configure logging to your heart's content. See Geode's and Log4j's documentation in [1] and [2] respectively. If the string you want to prepend is static, I'm pretty sure that can happen quite easily in a configuration XML. If it's dynamic, you might need to

Re: Geode Version in the logs

2019-01-03 Thread Nabarun Nag
Just in case you are planning to write tests consisting of multiple versions of Apache Geode simultaneously, you can look into any RollingUpgradeDUnitTest. Those append the version number before each log statement. Regards Nabarun Nag On Thu, Jan 3, 2019 at 8:53 AM Jacob Barrett wrote: > Given

Re: Geode Version in the logs

2019-01-03 Thread Jacob Barrett
Given that the version can’t change at runtime it doesn’t make sense to repeatedly print static state of the system. The log does print the static state of the system at startup. > On Jan 3, 2019, at 8:17 AM, Peter Tran wrote: > > Hello, > > Is it possible to prepend every log message with th

Geode Version in the logs

2019-01-03 Thread Peter Tran
Hello, Is it possible to prepend every log message with the current Geode version? I think it might help with debugging. I'm not sure how something like this would work as the software wouldn't really know how to read metadata about itself? Has something like this been attempted in the past? I wo