Java源码示例:org.testng.log4testng.Logger

示例1
@BeforeClass
public void prepareLogger() throws Exception
{
    Class<? extends AlfrescoAPITestCase> currTestClass = getClass();
    this.logger = Logger.getLogger(currTestClass);
    String message = "Started executing class " + this.getClass().getName();
    logger.info(message);
}