|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.miningmart.m4.utils.Print
The class Print prints all messages on the screen.
Field Summary | |
static java.util.logging.Level |
CACHE
Use this verbosity level for messages that concern the caching of M4 objects in the DB class. |
static java.util.logging.Level |
COMPILER_CASE_CONTROL
Use this verbosity level for messages that concern the controlling of a case. |
static java.util.logging.Level |
COMPILER_OP_CONTROL
Use this verbosity level for messages that concern the controlling of an operator. |
static java.util.logging.Level |
COMPILER_STEP_CONTROL
Use this verbosity level for messages that concern the controlling of a step. |
static java.util.logging.Level |
DB_READ
Use this verbosity level for messages about reading from the database. |
static java.util.logging.Level |
DB_WRITE
Use this verbosity level for messages about updating the database. |
static java.util.logging.Level |
DEFAULT_VERBOSITY
The default-verbosity-level. |
static java.util.logging.Level |
ERROR
Use this verbosity-level for error-messages. |
static java.util.logging.Level |
FATAL
Use this verbosity-level for fatal errors. |
static java.util.logging.Level |
HELP
Use this verbosity level for messages from or about the help sets. |
static java.util.logging.Level |
M4_OBJECT
Use this verbosity level for messages that concern the loading, the validity or the status of any M4 object. |
static java.util.logging.Level |
MAX
Maximum verbosity level. |
static java.util.logging.Level |
MIN
Minimum verbosity level. |
static java.util.logging.Level |
OPERATOR
Use this verbosity level for messages that concern the execution of an operator. |
static java.util.logging.Level |
PARAM
Use this verbosity level for messages that concern the loading, the validity or the status of an operator's parameters. |
static java.util.logging.Level |
WARNING
Use this verbosity-level for warnings. |
Method Summary | |
void |
addHandler(java.util.logging.Handler handler)
Adds an OutputStream as StreamHandler to the Logger . |
void |
createLogger()
Creates the Logger . |
void |
doPrint(java.util.logging.Level verbosityLevel,
java.lang.String printString)
Prints a message according to the configuration of this Print object (depending on the constructor that was used). |
void |
doPrint(java.util.logging.Level verbosityLevel,
java.lang.String printString,
java.lang.Throwable throwable)
Prints a message according to the configuration of this Print object (depending on the constructor that was used). |
static java.util.Collection |
getAllVerbosityLevelNames(java.util.logging.Level minVerbosityLevel)
Convenience method to get all names of verbosity levels in descending order of verbosity, but only down to the given level. |
java.lang.String |
getFileName()
Returns the file name (with complete path) of the file that this Print object prints to. |
static Print |
getGlobalPrintObject()
Access to the one and only global Print object. |
static java.io.File |
getLogFile()
Gets the logfile. |
java.util.logging.Logger |
getLogger()
Gets the Logger . |
static java.io.File |
getLogPath()
Gets the path to the logfile. |
java.util.logging.Level |
getMinimumVerbosityLevel()
Gets the current minimum verbosity level that messages must have in order to be printed. |
static java.lang.String |
getNameOfVerbosityLevel(java.util.logging.Level level)
Returns a fixed String to be used to display the given verbosity level. |
java.util.logging.Level[] |
getTheLevel()
Gets all Level . |
static java.util.logging.Level |
getVerbosityLevelForName(java.lang.String nameOfLevel)
Returns the verbosity level which is denoted by the given String, or DEFAULT_VERBOSITY if there is no level with that name. |
void |
removeHandler(java.util.logging.Handler handler)
|
void |
setMinimumVerbosityLevel(java.util.logging.Level newLevel)
Changes the current minimum verbosity level that messages must have in order to be printed by the method doPrint(int, String) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.util.logging.Level MAX
public static final java.util.logging.Level FATAL
public static final java.util.logging.Level ERROR
public static final java.util.logging.Level WARNING
public static final java.util.logging.Level COMPILER_CASE_CONTROL
public static final java.util.logging.Level COMPILER_STEP_CONTROL
public static final java.util.logging.Level COMPILER_OP_CONTROL
public static final java.util.logging.Level OPERATOR
public static final java.util.logging.Level CACHE
public static final java.util.logging.Level PARAM
public static final java.util.logging.Level M4_OBJECT
public static final java.util.logging.Level DB_WRITE
public static final java.util.logging.Level DB_READ
public static final java.util.logging.Level HELP
public static final java.util.logging.Level MIN
public static final java.util.logging.Level DEFAULT_VERBOSITY
Method Detail |
public void createLogger()
Logger
.
public static java.io.File getLogPath()
public static java.io.File getLogFile()
public java.util.logging.Logger getLogger()
Logger
.
public static Print getGlobalPrintObject()
public java.lang.String getFileName()
public void addHandler(java.util.logging.Handler handler)
OutputStream
as StreamHandler
to the Logger
.
public void removeHandler(java.util.logging.Handler handler)
public void doPrint(java.util.logging.Level verbosityLevel, java.lang.String printString)
verbosityLevel
- Use one of the public static fields of this classprintString
- The message to be printedpublic void doPrint(java.util.logging.Level verbosityLevel, java.lang.String printString, java.lang.Throwable throwable)
verbosityLevel
- Use one of the public static fields of this classprintString
- The message to be printedpublic void setMinimumVerbosityLevel(java.util.logging.Level newLevel)
doPrint(int, String)
.
newLevel
- The new minimum verbosity level.public java.util.logging.Level getMinimumVerbosityLevel()
public static java.lang.String getNameOfVerbosityLevel(java.util.logging.Level level)
level
- Use one of the public static constants of this class.
public static java.util.Collection getAllVerbosityLevelNames(java.util.logging.Level minVerbosityLevel)
minVerbosityLevel
- the minimum level; only names of this level and higher
are returned
public static java.util.logging.Level getVerbosityLevelForName(java.lang.String nameOfLevel)
nameOfLevel
- Use only such names as have been returned by the
method getNameOfVerbosityLevel
. One of the public static constants of this class,
or DEFAULT_VERBOSITY if no
level with the given name exists.public java.util.logging.Level[] getTheLevel()
Level
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |