Author: david.lloyd(a)jboss.com
Date: 2008-07-21 14:31:12 -0400 (Mon, 21 Jul 2008)
New Revision: 4419
Modified:
remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingSecurityManager.java
Log:
Use logging for logging security manager to make the output more readable
Modified:
remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingSecurityManager.java
===================================================================
---
remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingSecurityManager.java 2008-07-21
16:52:29 UTC (rev 4418)
+++
remoting3/trunk/testing-support/src/main/java/org/jboss/cx/remoting/test/support/LoggingSecurityManager.java 2008-07-21
18:31:12 UTC (rev 4419)
@@ -3,17 +3,20 @@
import java.security.Permission;
import java.io.FileDescriptor;
import java.net.InetAddress;
+import org.jboss.xnio.log.Logger;
/**
*
*/
public final class LoggingSecurityManager extends SecurityManager {
+ private static final Logger log = Logger.getLogger("ACCESS_EXCEPTION");
+
public LoggingSecurityManager() {
}
private static <T extends Throwable> T logged(T se) {
- se.printStackTrace(System.err);
+ log.error(se, "Access violation!");
return se;
}