de.smartics.ci.comm
Class LogLevel

Package class diagram package LogLevel
java.lang.Object
  extended by de.smartics.ci.comm.LogLevel
All Implemented Interfaces:
Serializable

public final class LogLevel
     
     
extends Object
implements Serializable

The log level.

See Also:
Serialized Form

Field Summary
static String NORMAL
          The normal level: writes only command result descriptions.
static String QUIET
          The quiet level: prints no info messages.
static String TRACE
          The verbose level: provides the most verbose output with dumping the contents of the returned pages.
static String VERBOSE
          The verbose level: adds information about the called service and parameters
 
Constructor Summary
LogLevel(String level)
          Default constructor.
 
Method Summary
 String getLevel()
          Returns the name of the current level.
 boolean isNormal()
          Checks if the current level is normal or greater.
 boolean isQuiet()
          Checks if the current level is quiet.
 boolean isTrace()
          Checks if the current level is trace.
 boolean isVerbose()
          Checks if the current level is verbose or greater.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUIET

public static final String QUIET
The quiet level: prints no info messages.

The value of this constant is "QUIET".

Constant Field Value:
"QUIET"

NORMAL

public static final String NORMAL
The normal level: writes only command result descriptions.

The value of this constant is "NORMAL".

Constant Field Value:
"NORMAL"

VERBOSE

public static final String VERBOSE
The verbose level: adds information about the called service and parameters

The value of this constant is "VERBOSE".

Constant Field Value:
"VERBOSE"

TRACE

public static final String TRACE
The verbose level: provides the most verbose output with dumping the contents of the returned pages.

The value of this constant is "TRACE".

Constant Field Value:
"TRACE"
Constructor Detail

LogLevel

public LogLevel(String level)
Default constructor.

Parameters:
level - the name of the current level.
Method Detail

getLevel

public String getLevel()
Returns the name of the current level.

Returns:
the name of the current level.

isQuiet

public boolean isQuiet()
Checks if the current level is quiet.

Returns:
true if the current level is quiet.

isNormal

public boolean isNormal()
Checks if the current level is normal or greater.

Returns:
true if the current level is normal or greater.

isVerbose

public boolean isVerbose()
Checks if the current level is verbose or greater.

Returns:
true if the current level is verbose or greater.

isTrace

public boolean isTrace()
Checks if the current level is trace.

Returns:
true if the current level is trace.

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Kronseder & Reiner GmbH - smartics. All Rights Reserved.