title: How to configure log4j and Selenium Grid?
body: <p>When I launch a Grid hub using Ant, the logging is all by default on the console. I would like to know if there is a way wherein I can alter the <code>build.xml</code> file of Selenium Grid and include a <code>log4j</code> logger into it. I understand that I can specify a log file to Ant itself using the <code>-logfile</code> option. But this would cause the log file to be overwritten everytime the grid is launched. I want to ensure that the log files are automatically renamed after a threshold is reached for better maintenance. Any help and if possible some examples on how to do it would be greatly appreciated (I am new to using <code>log4j</code> which is why I am asking for some sample for this specific need).</p>