The question is actually this; I need info message for every method's start and end. For example I have a code block:
public void MethodName(ObjectName object)
{
try
{
LOG.Info(MethodBase.GetCurrentMethod());
// Some codes in here
}
catch (Exception e)
{
LOG.Error(e.Message);
}
}
I don't want to write Log.Info for every method. Any suggestion ?