Package qupath.lib.gui.logging
Class LogManager
java.lang.Object
qupath.lib.gui.logging.LogManager
Manage logging levels.
-
Property Summary
PropertiesTypePropertyDescriptionstatic ObjectProperty<LogManager.LogLevel> Property representing the current requested root log level. -
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddTextAppendableFX(TextAppendable component) Register aTextAppendablethat will be accept logging events and be updated on the JavaFX Application thread.static LogManager.LogLevelSet the root log level, as set by this manager.static voidRequest logging to the specified file.static voidremoveTextAppendableFX(TextAppendable component) Deregister aTextAppendableso that it will no longer be informed of logging events.static ObjectProperty<LogManager.LogLevel> Property representing the current requested root log level.static voidsetAll()Set the root log level to LogLevel.ALL.static voidsetDebug()Set the root log level to DEBUG.static voidsetError()Set the root log level to LogLevel.ERROR.static voidsetInfo()Set the root log level to DEBUG.static voidsetOff()Set the root log level to LogLevel.OFF.static voidSet the root log level.static voidsetTrace()Set the root log level to LogLevel.TRACE.static voidsetWarn()Set the root log level to LogLevel.WARN.
-
Property Details
-
rootLogLevel
Property representing the current requested root log level.- See Also:
-
-
Constructor Details
-
LogManager
public LogManager()
-
-
Method Details
-
logToFile
Request logging to the specified file.- Parameters:
file-
-
setRootLogLevel
Set the root log level.- Parameters:
level-
-
getRootLogLevel
Set the root log level, as set by this manager. This is not guaranteed to match the actual root log level, in case it has been set elsewhere.- Returns:
-
rootLogLevelProperty
Property representing the current requested root log level.- Returns:
- See Also:
-
setDebug
public static void setDebug()Set the root log level to DEBUG. -
setInfo
public static void setInfo()Set the root log level to DEBUG. -
setWarn
public static void setWarn()Set the root log level to LogLevel.WARN. -
setError
public static void setError()Set the root log level to LogLevel.ERROR. -
setTrace
public static void setTrace()Set the root log level to LogLevel.TRACE. -
setAll
public static void setAll()Set the root log level to LogLevel.ALL. -
setOff
public static void setOff()Set the root log level to LogLevel.OFF. -
addTextAppendableFX
Register aTextAppendablethat will be accept logging events and be updated on the JavaFX Application thread.- Parameters:
component- the appendable to add
-
removeTextAppendableFX
Deregister aTextAppendableso that it will no longer be informed of logging events.- Parameters:
component- the appendable to remove
-