Class TextAreaHandler
java.lang.Object
java.util.logging.Handler
madkit.logging.TextAreaHandler
This class extends the Handler class to provide a custom log handler that outputs log
records to a JavaFX TextArea. It overrides the publish, flush, and close methods to
handle log records appropriately.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTextAreaHandler
(TextArea area) Constructs a new TextAreaHandler with the specified TextArea. -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
TextAreaHandler
Constructs a new TextAreaHandler with the specified TextArea.- Parameters:
area
- the TextArea to which log records will be appended
-
-
Method Details
-
publish
-
flush
-
close
Closes the handler and releases any associated resources. This implementation does nothing.- Specified by:
close
in classHandler
- Throws:
SecurityException
- if a security manager exists and if the caller does not have LoggingPermission("control")
-