Microsoft Enterprice Library 1.0

May 1, 2008 at 10:08 PM
Hi

I want to log client Ip addtress to the Database using Logging and Instrumentation Application Block. Apart from existing feilds (i..e,
EventID,Category,Priority,Severity,Title,Timestamp,MachineName,AppDomainName,ProcessID,ProcessName,ThreadName,Win32ThreadId,Message and FormattedMessage)

I want to send "ClientIpAddress" feild while writing the log into Logger.
LogEntry log = new LogEntry();
Log.Message = ex.InnerException.ToString();
log.Title = ex.ToString();
/* need to add CilientIpaddress
log.ClientIp="Ipaddress";

*/

Logger.Write(log);


i am using Database sink, required stored procure is modifed to accept new parameter(@ClientIpAddress).

Here is the environment details:
using Microsfot Enterprice Library June 2005 Release .
Asp.net 1.0
.net Framework 1.1
C#

thanks,
Ram.