When we initiate a new firefox driver object and run our program we sometimes see logs in console of eclipse. We can remove them from console by using below line of code
System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE,"none");
If we want to save the logs somewhere we can do this.
System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE,"location to save logs + \browerlogs.txt");