Ok, typical me, jumped in WAY too far too quickly.
I did not even need a custom PatternParser, just a local variable in the
properties file.
#custom properties
instanceId=PC1
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} ${instanceId}
[%t] %-5p %c - %m%n
Done...
--
View this mess
the Properties are loaded and parsed in the
internals of Log4J?
Thanks
Mark
Kram wrote:
>
> Hello all,
>
> I am using Log4J 1.2.15, and I have the need to output a special, custom,
> pattern to my appenders. I have looked up at the samples and googled
> around and I sort of have
Hello all,
I am using Log4J 1.2.15, and I have the need to output a special, custom,
pattern to my appenders. I have looked up at the samples and googled around
and I sort of have it working, however, when I try to add my custom pattern
property "instanceId" to the NT Logger, I get a NPE.
My pro