title: How to override Logger.Error method in C#?
body: <p>I am trying to call overidden error method in OverrideLogErrorMethod of Csfbs  class as follows</p>
  
  <pre><code>namespace IQCs
  {
  public class Csfbs
  {
   public static string OverrideLogErrorMethod(string Name)
   {
     ILogger Logger = LogManager.GetLogger(LOGFILENAME);
     try
     {
       /*Somecode*/
        if (Name != "Name")
           throw new Exception();
        else
           return "success";
      }
      catch 
      {           
         Logger.Error("Overrided logger.error method");//here I want to call overriden error method
         return "override Success";
       }
    }
  }
  
   public abstract class CustomLoggerClass: ILogger //Implementing Ilogger interface which implements error method
   {
      public abstract void Error(string message);
   }
  public class CUs : CustomLoggerClass
  {
     //Overriden error method in CUs
      public override void Error(string message)
      {           
          string messageInfo = "Control is in overrided Logger.error method";
          ILogger Logger = LogManager.GetLogger(LOGFILENAME);
          Logger.Info(messageInfo);
      }
   }
  }
  </code></pre>
  
  <p>Control is not going to overridden error method, what changes in the code will make control to go to overriden error method? I dont want to change the name of the method as the name is used in many places</p>