>We provide a web service to our clients which receives requests, formats a new request and passes it on to any number of business partners using various techniques such as HTTP, Sockets, WebService. Upon getting back the different results we parse and package the data in a standard form and then return our digested data to our client. the initial request from our client is relatively short usually less than 60 characters. Our request to one of our partners is also small less that 200 characters. Replies from our partners can exceed sever thousand characters per request. and finally our response to our client is usually less than 2k.
>
>We need to log the entire "conversation" to a log file. For end user convenience we want to log to a text file. Since we get about 1 - 3 per second a log file will soon spin out of control.
>
>Does anyone have any suggestions as to how to "automatically" provide for some kind of circular logging?
>
I haven't used this particular bit of functionality, but I think log4net supports this - search for "RollingFileAppender" in the docs.
http://logging.apache.org/log4net/It's a little confusing to get log4net configured the first time, but it's pretty simple to use.