Possible Duplicate:
How to get the Stack trace when logging exceptions with NLog?
What is the best practice to throw exception to get a clear picture from the log?
For logging, I am using NLog.
Below is the simple code:
catch (Exception ex)
{
logger.Fatal(ex.Message);
throw new Exception(ex.Message);
}
It does not give me a good logging message. I need info like, the function, the error code line.