P
ProgDario
HI,
I'm using the class NTEventLogAppender in log4j distribution.
My code is simple:
NTEventLogAppender eventLogAppender = new NTEventLogAppender();
eventLogAppender.setSource("ASDF"); // <-- I CHANGE THE SOURCE
eventLogAppender.setLayout(new PatternLayout("%m"));
But when I log into NT system, the source in the event viewer is
'log4j' instead of 'ASDF'.
If I use the constructor NTEventLogAppender("ASDF", layout), the source
becomes 'ASDF', but if I call the setSource method, the source DONESN'T
CHANGE!!
Any idea??
Thanks
ario
I'm using the class NTEventLogAppender in log4j distribution.
My code is simple:
NTEventLogAppender eventLogAppender = new NTEventLogAppender();
eventLogAppender.setSource("ASDF"); // <-- I CHANGE THE SOURCE
eventLogAppender.setLayout(new PatternLayout("%m"));
But when I log into NT system, the source in the event viewer is
'log4j' instead of 'ASDF'.
If I use the constructor NTEventLogAppender("ASDF", layout), the source
becomes 'ASDF', but if I call the setSource method, the source DONESN'T
CHANGE!!
Any idea??
Thanks
ario