git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1457073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-03-15 19:15:51 +00:00
parent a42420d444
commit 39c27f9ebb
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ public class ActiveMQAdmin implements Admin {
static public void enableJMSFrameTracing() throws FileNotFoundException { static public void enableJMSFrameTracing() throws FileNotFoundException {
final SimpleFormatter formatter = new SimpleFormatter(); final SimpleFormatter formatter = new SimpleFormatter();
final PrintStream out = new PrintStream(new FileOutputStream(new File("/tmp/amqp-trace.txt"))); String outputStreamName = System.getProperty("java.io.tmpdir") + "/amqp-trace.txt";
final PrintStream out = new PrintStream(new FileOutputStream(new File(outputStreamName)));
Handler handler = new Handler() { Handler handler = new Handler() {
@Override @Override
public void publish(LogRecord r) { public void publish(LogRecord r) {