Switch to use the Lttng-Ust Java Agent API, refactor using JUnit
[lttng-ust-java-tests.git] / src / org / lttng / ust / agent / jul / benchmarks / FileHandlerBenchmark.java
diff --git a/src/org/lttng/ust/agent/jul/benchmarks/FileHandlerBenchmark.java b/src/org/lttng/ust/agent/jul/benchmarks/FileHandlerBenchmark.java
new file mode 100644 (file)
index 0000000..91a0419
--- /dev/null
@@ -0,0 +1,16 @@
+package org.lttng.ust.agent.jul.benchmarks;
+
+import java.io.IOException;
+import java.util.logging.FileHandler;
+import java.util.logging.SimpleFormatter;
+
+import org.junit.Before;
+
+public class FileHandlerBenchmark extends AbstractJulBenchmark {
+
+    @Before
+    public void testSetup() throws SecurityException, IOException {
+        handler = new FileHandler("/tmp/log", false);
+        handler.setFormatter(new SimpleFormatter());
+    }
+}
This page took 0.025964 seconds and 4 git commands to generate.