FileDocCategorySizeDatePackage
LogLevel.javaAPI DocApache Ant 1.702411Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.types

LogLevel

public class LogLevel extends EnumeratedAttribute
The enumerated values for Ant's log level.

Fields Summary
public static final LogLevel
ERR
ERR loglevel constant.
public static final LogLevel
WARN
WARN loglevel constant.
public static final LogLevel
INFO
INFO loglevel constant.
public static final LogLevel
VERBOSE
VERBOSE loglevel constant.
public static final LogLevel
DEBUG
DEBUG loglevel constant.
private static int[]
levels
mapping of enumerated values to log levels
Constructors Summary
public LogLevel()
Public constructor.


           
      
    
private LogLevel(String value)

        this();
        setValue(value);
    
Methods Summary
public intgetLevel()
get the level of the echo of the current value

return
the level


                      
       
        return levels[getIndex()];
    
public java.lang.String[]getValues()

see
EnumeratedAttribute#getValues
return
the strings allowed for the level attribute

        return new String[] {
            "error",
            "warn",
            "warning",
            "info",
            "verbose",
            "debug"};