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 intstatic final intprotected static Map<ErrorWarningType,Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidPrints a debug message (prints class name, method and line number)static voidPrints a debug message (prints class name, method and line number)static voidPrints a debug message (prints class name, method and line number)static voidShow a warning message (up to MAX_ERRORS times)static voidstatic voidfatalError(String message) Show an error message and exitstatic voidfatalError(Throwable e, String message) static Map<ErrorWarningType,Integer> static voidShow absolute timer value and a message on STDERRstatic voidShow absolute timer value and a message on STDERR (prepend a newline)static voidreset()Reset all parameters, warning counters, silenced warningis, etc.static voidsetFatalErrorBehabiour(Log.FatalErrorBehabiour fatalErrorBehabiour) static voidsilenceWarning(ErrorWarningType warningType) static voidstatic voidwarning(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)
-