Package qupath.lib.gui.logging
Class LogManager
java.lang.Object
qupath.lib.gui.logging.LogManager
Manage logging levels.
- Author:
- Pete Bankhead
-
Property Summary
TypePropertyDescriptionstatic ObjectProperty
<LogManager.LogLevel> Property representing the current requested root log level. -
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addTextAppendableFX
(TextAppendable component) Register aTextAppendable
that will be accept logging events and be updated on the JavaFX Application thread.static LogManager.LogLevel
Set the root log level, as set by this manager.static void
Request logging to the specified file.static void
removeTextAppendableFX
(TextAppendable component) Deregister aTextAppendable
so that it will no longer be informed of logging events.static ObjectProperty
<LogManager.LogLevel> Property representing the current requested root log level.static void
setAll()
Set the root log level to LogLevel.ALL.static void
setDebug()
Set the root log level to DEBUG.static void
setError()
Set the root log level to LogLevel.ERROR.static void
setInfo()
Set the root log level to DEBUG.static void
setOff()
Set the root log level to LogLevel.OFF.static void
Set the root log level.static void
setTrace()
Set the root log level to LogLevel.TRACE.static void
setWarn()
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 aTextAppendable
that will be accept logging events and be updated on the JavaFX Application thread.- Parameters:
component
- the appendable to add
-
removeTextAppendableFX
Deregister aTextAppendable
so that it will no longer be informed of logging events.- Parameters:
component
- the appendable to remove
-