After going through multiple tries, we found that when you are creating session settings for Quick fix you can provide your log factory, message factory and store factory. These are implementation of LogFactory interface, which will supply which Log implementation to use.
We created custom JDBCLogfactory and modified the implementation to supply our custom Log implementation.