Hello,
How to Implementing file log in asp.net.Use seprate class to implementing logic og file and how to access this class in page on button click......
thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyendra Kumar SinghPosted Dec 28, 2016, 8:12 AM
{
HttpRequest oHttpRequest = HttpContext.Current.Request;
StreamWriter oStreamWriter = new StreamWriter("/MiscFiles/Errors.htm", true);
oStreamWriter.WriteLine("----- Start Error : " + System.DateTime.Now.ToString() + " -----");
oStreamWriter.WriteLine("
oStreamWriter.WriteLine("
oStreamWriter.WriteLine("
oStreamWriter.WriteLine("
");
oStreamWriter.Close();
}
{
catch (Exception ex)
{
error.LogErrors(ex);
}
Maharudra GadekarPosted Dec 28, 2016, 7:39 AM
Chetan RanpariyaPosted Dec 28, 2016, 7:32 AM
Satyendra Kumar SinghPosted Dec 28, 2016, 7:32 AM