title: How to log Test Suite name before suite
body: <p>I want to log name of the test suite before running it. I succeed on logging method names but couldn't figure out how I can do the same thing with suites. My code:</p>
  
  <p>EDIT: I found the solution. Here is the code for those who need it.</p>
  
  <pre><code>public class TestCase {
  
  private Logger logger = LogManager.getLogger(this.getClass());
  protected static WebDriver driver;
  
  private String url = PropertyManager.getUrl();
  private String browser = PropertyManager.getBrowser();
  
  @BeforeSuite
  protected void setUp(ITestContext tes) { 
      System.setProperty("webdriver.chrome.driver","chromedriver.exe");
      System.setProperty("webdriver.chrome.logfile", "chromedriver.log");
      System.setProperty("webdriver.chrome.verboseLogging", "true");
      driver = new ChromeDriver();
  
      driver.get(url);
      driver.manage().window().maximize();
      logger.info("Starting up {} driver.", browser);
  
  
      logger.info(tes.getSuite().getName());
  }
  </code></pre>