Package org.snpeff.util
Class Log
java.lang.Object
org.snpeff.util.Log
Logging
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
protected static Map<ErrorWarningType,
Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Prints a debug message (prints class name, method and line number)static void
Prints a debug message (prints class name, method and line number)static void
Prints a debug message (prints class name, method and line number)static void
Show a warning message (up to MAX_ERRORS times)static void
static void
fatalError
(String message) Show an error message and exitstatic void
fatalError
(Throwable e, String message) static Map<ErrorWarningType,
Integer> static void
Show absolute timer value and a message on STDERRstatic void
Show absolute timer value and a message on STDERR (prepend a newline)static void
reset()
Reset all parameters, warning counters, silenced warningis, etc.static void
setFatalErrorBehabiour
(Log.FatalErrorBehabiour fatalErrorBehabiour) static void
silenceWarning
(ErrorWarningType warningType) static void
static void
warning
(ErrorWarningType warnType, String msg) Show a warning message (up to MAX_ERRORS times)static void
-
Field Details
-
MAX_WARNINGS
public static final int MAX_WARNINGS- See Also:
-
MAX_ERRORS
public static final int MAX_ERRORS- See Also:
-
warnCount
-
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
debug
Prints a debug message (prints class name, method and line number) -
debug
Prints a debug message (prints class name, method and line number) -
debug
Prints a debug message (prints class name, method and line number) -
error
Show a warning message (up to MAX_ERRORS times) -
error
-
fatalError
Show an error message and exit -
fatalError
-
getWarnCount
-
info
Show absolute timer value and a message on STDERR -
infoln
Show absolute timer value and a message on STDERR (prepend a newline) -
reset
public static void reset()Reset all parameters, warning counters, silenced warningis, etc. -
setFatalErrorBehabiour
-
silenceWarning
-
warning
-
warningln
-
warning
Show a warning message (up to MAX_ERRORS times)
-