Changeset 2141


Ignore:
Timestamp:
01/19/07 16:08:27 (13 years ago)
Author:
curtis
Message:

Add new "insane" debugging level that prints every debugging message
as a stack trace instead of a normal println.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/FormatReader.java

    r2134 r2141  
    8686  protected static boolean debug = false; 
    8787 
    88   /** Debugging level. 1=basic, 2=extended, 3=everything. */ 
     88  /** Debugging level. 1=basic, 2=extended, 3=everything, 4=insane. */ 
    8989  protected static int debugLevel = 1; 
    9090 
     
    207207    if (name.startsWith(prefix)) name = name.substring(prefix.length()); 
    208208    String msg = System.currentTimeMillis() + ": " + name + ": " + s; 
    209     System.out.println(msg); 
     209    if (debugLevel > 3) new Exception(msg).printStackTrace(); 
     210    else System.out.println(msg); 
    210211  } 
    211212 
Note: See TracChangeset for help on using the changeset viewer.