1 package org
.lttng
.ust
.agent
.benchmarks
.jul
.handler
;
3 import java
.io
.IOException
;
4 import java
.nio
.file
.Files
;
5 import java
.nio
.file
.Path
;
6 import java
.util
.logging
.FileHandler
;
7 import java
.util
.logging
.SimpleFormatter
;
9 import org
.junit
.After
;
10 import org
.junit
.Before
;
12 public class FileHandlerBenchmark
extends AbstractJulBenchmark
{
14 private Path outputFile
;
17 public void testSetup() throws SecurityException
, IOException
{
18 outputFile
= Files
.createTempFile(this.getClass().getSimpleName(), null);
20 handler
= new FileHandler(outputFile
.toString(), false);
21 handler
.setFormatter(new SimpleFormatter());
25 public void testTeardown() throws IOException
{
26 Files
.deleteIfExists(outputFile
);
This page took 0.033007 seconds and 5 git commands to generate.