user105123: I know there is a function that allows me to see all transactions that are in mempool, but is there a way to see every new transaction that enters mempool? Like log to file whenever new unconfirmed transaction enter mempool.

user-1: This PR got merged yesterday, you can build from master branch and maybe this should solve your problem: https://github.com/bitcoin/bitcoin/pull/19572
A tutorial about using bitcoind zmq: https://bitcoindev.network/accessing-bitcoins-zeromq-interface/

105123: <p>I know there is a function that allows me to see all transactions that are in mempool, but is there a way to see every new transaction that enters mempool? Like log to file whenever new unconfirmed transaction enter mempool.</p>
 -1: <p>This PR got merged yesterday, you can build from master branch and maybe this should solve your problem: <a href="https://github.com/bitcoin/bitcoin/pull/19572" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/pull/19572</a></p>
<p>A tutorial about using bitcoind zmq: <a href="https://bitcoindev.network/accessing-bitcoins-zeromq-interface/" rel="nofollow noreferrer">https://bitcoindev.network/accessing-bitcoins-zeromq-interface/</a></p>
