Hi I have web.config file where I have added the Log Listner.and I want to use that log file in my another class which is in another dll.
I can get that path of web.config like
string path=ConfiqurationManager.Appsetting["MyLogFile"];
But How I will use that to write the details of log in a file
like How to use that path in
string path= ConfigurationManager.AppSettings["MyLogFile"].ToString();
LogEntry objlogEntry = new LogEntry();
objlogEntry.Message = errorMsg;
Logger.Write(objlogEntry);
Logger.Write("Error", "Error");
Logger.Write("Hello Message", "None", errorPriority, 01, TraceEventType.Information);
Logger.Write("Crash", "General", errorPriority, 02, TraceEventType.Error);
Logger.Write("Crash", "Error", errorPriority, 01, TraceEventType.Error, methodName);
can any one Tell me how to use path in LogEnry class
Thanks
Fayaz