Click here to Skip to main content
15,887,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have two rolling file appenders for two seperate logs the first RollingLogFileAppender should store the logs in the catch block ie exceptions and seond Elaspsedtimeappender should store the logs in the finally block the RollingLogFileAppender has path to c drive and Elaspsedtimeappender appender has path to d drive please help me how to do this if possible help me how to store the both catch and finally block logs in different files (text using only one rolling file appender) using log4net please help me its urgent...........
here is the code that i have implemented in controller for delete operation please
employeeModel.EmployeeId = Convert.ToInt32(id);
             employeeService.DeleteEmployee(employeeModel);
         }
     }
     catch (Exception ex)
     {
         **log.ErrorFormat(ex.StackTrace);**
     }
     **finally**
     {
         log.Debug(stopwatch.ElapsedMilliseconds);
     }
     return RedirectToAction("List", "EmployeeMaster");
 }
Posted
Updated 27-Jul-11 2:40am
v2

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900