Please refer to: http://stackoverflow.com/questions/1340643/how-to-enable-ip-address-logging-with-log4net which explains how to log an IP using log4net.
My problem is that in certain cases extra threads are spawned that belong to a session. Now I need log4net to understand (or the thread) to be able to log with the correct IP.
Currently when an additional Thread is spawned the thread logs to the logfile as (null) instead of an IP.
How do I ensure that all threads related to a Session know the IP of the remote host?