This question is an old one but hope this answer will help if anyone have the same issue as I did not find any related question.
According to the Quickfix Configuration, default value of FileLogPath
in your configuration file is '-'. Therefore, remove or comment the FileLogPath
setting from your configuration file.
When you create the socket initiator instance, you have 3 overloads by Quickfix SocketInitiator class as mentioned bellow.
public SocketInitiator(IApplication application, IMessageStoreFactory storeFactory, SessionSettings settings);
public SocketInitiator(IApplication application, IMessageStoreFactory storeFactory, SessionSettings settings, ILogFactory logFactory);
public SocketInitiator(IApplication application, IMessageStoreFactory storeFactory, SessionSettings settings, ILogFactory logFactory, IMessageFactory messageFactory);
We need to use the first one as we need to switch off the quickfix logs.
Sample code segment is mentioned bellow
SessionSettings settings = new("your-config.cfg");
IMessageStoreFactory storeFactory = new FileStoreFactory(settings);
SocketInitiator initiator = new(_application, storeFactory, settings);
Afterwith, you can implement different logging mechanism to handle your logs. For example, Serilog