|
From: t.s. <tru...@cb...> - 2007-05-30 02:21:11
|
> Seems like you may have the appender defined, but since everything is
> showing up on stdout your log4.rootLogger line may not be configured
> correctly to point to that. Double-check that and you may be able to
> to get it working.
Here's the content of my log4j.properties file:
...
log4j.rootLogger=DEBUG, Default
log4j.appender.Default=org.apache.log4j.DailyRollingFileAppender
log4j.appender.Default.File=/log.txt
log4j.appender.Default.DatePattern='.'yyyy-MM-dd
...
and here's my quickfix config entries:
...
SLF4JLogEventCategory=${senderCompID}.${targetCompID}.events
SLF4JLogIncomingMessageCategory=${senderCompID}.${targetCompID}.incoming
SLF4JLogOutgoingMessageCategory=${senderCompID}.${targetCompID}.outgoing
SLF4JLogPrependSessionID=Y
...
No luck so far.
Something like the following did show up on the console screen
...
04:41:36,250 [AWT-EventQueue-0] INFO events - xxx: Session xxx schedule
is daily, 00:00:00 UTC - 00:00:00 UTC
04:41:36,250 [AWT-EventQueue-0] INFO events - xxx: Created session: xxx
04:41:37,875 [SocketConnectorIoProcessor-0.0] INFO InitiatorIoHandler -
MINA session created: /xxx.xxx.xxx.xxx:xxxx
04:41:38,406 [QFJ Timer] INFO outgoing - xxx: blah blah blah
...
But i didn't even configure a console appender like you did. No log
files created, as far as i can see, and these messages also shows up
even if i delete the log4j.properties file. So maybe quickfix/j (and
log4j) cannot find the file ?
My apologies if this is a log4j question and not a quickfix/j issue.
Regards,
t.s.
|