|
From: t.s. <tru...@cb...> - 2007-05-30 12:02:53
|
> These are MINA debug statements. We are seeing these in stdout as
> well, that's b/c MINA uses either java commons logging or apache
> commons logging (i believe) so it's not governed by log4j properties
> file. I tried to get it to output somewhere else with
> java.util.logging.properties file, but i don't think we ever got it to
> work.
I see. So i shouldn't be worried about those just yet...
>> 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:38,406 [QFJ Timer] INFO outgoing - xxx: blah blah blah
> Otherwise, since you are using SLF4J, check your lib directory. You
> should have these: slf4j-api-1.3.0.jar slf4j-log4j12-1.3.0.jar
Check. Both files are in the lib directory.
> If you have anything else, SLF4J may use a different logging provider
> instead of log4j so that may be why it's not picking up the configs.
Right now my lib directory contains:
quickfixj.jar
backport-util-concurrent-2.1.jar
mina-core-1.0.1-sources.jar
mina-core-1.0.1.jar
slf4j-api-1.3.0.jar
log4j-1-2.4.jar
slf4j-log4j12-1.3.0.jar
> Also, check your session settings (or your code) and make sure you are
> only using the SLF4JLogFactory and not ScreenLogFactory - that would
> also explain what you are seeing.
Check. Here's the code :
...
settings = new SessionSettings(new
FileInputStream(QUICKFIX_CONFIG_FILENAME));
storeFactory = new FileStoreFactory(settings);
messageFactory = new DefaultMessageFactory();
logFactory = new SLF4JLogFactory(settings);
//logFactory = new FileLogFactory(settings);
//logFactory = new ScreenLogFactory(settings);
initiator = new SocketInitiator ( this, storeFactory,
settings, logFactory, messageFactory);
...
quickfix/j config file is like this :
...
SLF4JLogEventCategory=${senderCompID}.${targetCompID}.events
SLF4JLogIncomingMessageCategory=${senderCompID}.${targetCompID}.incoming
SLF4JLogOutgoingMessageCategory=${senderCompID}.${targetCompID}.outgoing
SLF4JLogPrependSessionID=Y
...
I even cleaned out all the references to FileLogXXXXX and ScreenLogXXXX
entries. Still no avail. Just to make sure i'm not barking up the wrong
tree, where *should* one put the slf4j.properties file ?
At this state, i don't even know how to test whether it's working
properly, other than "it doesn't create the log file". Any
pointers/hints will be very much appreciated...
Thank you,
t.s.
|