title: log4j.PropertyConfigurator error during runtime Says no suitable method found for configure(FileInputStream)
body: <p>I am getting the below error during build phase for Log4j. It say no such method found for configure(FileInputSteam).</p>
  <p>Below is full contex of error.</p>
  <p>Task :compileJava FAILED</p>
  <pre><code>E:\GadleDemoProj\src\main\java\com\hal\brands\helper\Logger\LoggerHelper.java:28: error: no suitable method found for configure(FileInputStream)
                          PropertyConfigurator.configure(inputStream);
                                              ^
      method PropertyConfigurator.configure(Properties) is not applicable
        (argument mismatch; FileInputStream cannot be converted to Properties)
      method PropertyConfigurator.configure(String) is not applicable
        (argument mismatch; FileInputStream cannot be converted to String)
      method PropertyConfigurator.configure(URL) is not applicable
        (argument mismatch; FileInputStream cannot be converted to URL)
  </code></pre>
  <p><strong>My Logger class is as below :</strong></p>
  <pre><code> public class LoggerHelper {
      
      private static boolean root = false;
      
      public static Logger getLogger(Class clas) {
          if(root)
              return Logger.getLogger(clas);
          
          /*PropertyConfigurator.configure(ResourceHelper
                  .getResourcePath(&quot;configfile/log4j.properties&quot;));*/
          FileInputStream inputStream = null;
          try {
              inputStream = new FileInputStream(System.getProperty(&quot;user.dir&quot;)+&quot;\\src\\main\\resources\\configFile\\log4j.properties&quot;);
              
              PropertyConfigurator.configure(inputStream);
  
          } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
          
          root = true;
          return Logger.getLogger(clas);
      }
  
  }
  </code></pre>