jTracer  1.03
Stack trace visualization tool
void org.libcsdbg.jtracer.Registry.setup ( ) throws IOException

Setup any process specific resources before the main application frame is launched.

Definition at line 283 of file Registry.java.

References org.libcsdbg.jtracer.Registry.getResource(), and org.libcsdbg.jtracer.Registry.test().

284  {
285  if (test("generic", "console"))
286  return;
287 
288  long id = System.currentTimeMillis();
289  File log = getResource("log/dbg-" + id + ".log");
290  log.createNewFile();
291 
292  System.out.println("\r\nOutput log: " + log.getCanonicalPath());
293  FileOutputStream fs = new FileOutputStream(log, true);
294  PrintStream ps = new PrintStream(fs, true);
295  System.setOut(ps);
296  System.setErr(ps);
297  }
boolean test(String section, String key)
Get a boolean entry.
Definition: Registry.java:166
File getResource(String path)
Get a resource file.
Definition: Registry.java:202

+ Here is the call graph for this function: