Search code examples
asp.net3-tier

Where do I create error log function in asp.net?


I am using 3 tier architecture in asp.net, I want to put function "ErrorLog()" to log errors, where should I put in my structure?


Solution

  • You can create a Uility folder under BLL which holds common functions like CommonFunction.cs class. In that class you can put ErrorLog , AlertMessage,Encrypt , Decrypt ... functions