Changeset 6723


Ignore:
Timestamp:
07/21/10 17:40:46 (9 years ago)
Author:
curtis
Message:

Readd support for "-debug" flag to showinf and bfconvert.

Location:
trunk/components/bio-formats/src/loci/formats/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/tools/ImageConverter.java

    r6294 r6723  
    2727import java.io.IOException; 
    2828 
     29import loci.common.DebugTools; 
    2930import loci.common.Location; 
    3031import loci.common.services.DependencyException; 
     
    7576    throws FormatException, IOException 
    7677  { 
     78    DebugTools.enableLogging("INFO"); 
    7779    String in = null, out = null; 
    7880    String map = null; 
     
    8587        if (args[i].startsWith("-") && args.length > 1) { 
    8688          if (args[i].equals("-debug")) { 
    87             LOGGER.warn("To enable debugging, edit the log4j.properties file,"); 
    88             LOGGER.warn("changing log4j.rootCategory from INFO to DEBUG"); 
    89             LOGGER.warn("(or TRACE for extreme verbosity)."); 
     89            DebugTools.enableLogging("DEBUG"); 
    9090          } 
    9191          else if (args[i].equals("-stitch")) stitch = true; 
  • trunk/components/bio-formats/src/loci/formats/tools/ImageInfo.java

    r6679 r6723  
    3131import loci.common.ByteArrayHandle; 
    3232import loci.common.DataTools; 
     33import loci.common.DebugTools; 
    3334import loci.common.Location; 
    3435import loci.common.RandomAccessInputStream; 
     
    173174        else if (args[i].equals("-autoscale")) autoscale = true; 
    174175        else if (args[i].equals("-debug")) { 
    175           LOGGER.warn(""); 
    176           LOGGER.warn("To enable debugging, edit the log4j.properties file,"); 
    177           LOGGER.warn("changing log4j.rootCategory from INFO to DEBUG"); 
    178           LOGGER.warn("(or TRACE for extreme verbosity)."); 
     176          DebugTools.enableLogging("DEBUG"); 
    179177        } 
    180178        else if (args[i].equals("-preload")) preload = true; 
     
    864862   */ 
    865863  public boolean testRead(String[] args) 
    866     throws FormatException, ServiceException, IOException { 
     864    throws FormatException, ServiceException, IOException 
     865  { 
     866    DebugTools.enableLogging("INFO"); 
    867867    parseArgs(args); 
    868868    if (printVersion) { 
Note: See TracChangeset for help on using the changeset viewer.