我正在使用嵌入式Glassfish與Arquillian一起執行一些容器內測試。現在,當我的測試失敗時,我總是從測試中得到與Arquillian特定的東西混雜的堆棧跟蹤。但是很少有關於失敗測試的真正原因的信息。 對於普通的Glassfish,我可以查看server.log以獲取更多信息。不幸的是,Embedded Glassfish似乎不提供Server.log。 我也查看了由Arquillian/Embedded Glassfish創建的臨時目錄,但它不包含任何日誌文件。如何在嵌入式Glassfish中獲取Server.log
如何激活嵌入式Glassfish中的日誌記錄?
順便說一句,我在我的POM以下依賴性:
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-glassfish-embedded-3</artifactId>
<version>1.0.0.Alpha4</version>
</dependency>
<dependency>
<groupId>org.glassfish.extras</groupId>
<artifactId>glassfish-embedded-all</artifactId>
<version>3.1-b06</version>
</dependency>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-testng</artifactId>
<version>1.0.0.Alpha4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.13.1</version>
<scope>test</scope>
</dependency>
</dependencies>