A common headache
for all developers is how to handle errors? Sometimes it's very
difficult to find where the errors comes. So, Better solution is write custom log files.
Here I am sharing my custom handling techniques.
My
custom log files highlights are: 
- It stores all our logs in the specified folder with the log file name? We just have to give the log file path in the web.config file
 - Will get the classname, methodname, logged username and exception name for each generated log file.
 - Log files are stored with log file generated date/time. Here is my custom log file code: