Introduction
FlexGanttFX has some built in logging support using the standard java.util.logging framework. Several logging domains are defined in the class com.flexganttfx.core.LoggingDomain. The following table lists the available domains.
Logging Domains
Domain | Description |
---|---|
CONFIG | Anything related to the configuration of the Gantt chart control. For example: the renderers that are being registered for different activity types. |
DND | Displays everything related to a drag and drop operation (native drag and drop / platform provided drag and drop). |
EDITING | Reports changes to the start time, end time, percentage complete, chart value, of an activity. |
EVENTS | Informs about activities related to events: registered listeners, events that are being sent. |
NAVIGATION | Scrolling, zooming. |
PERFORMANCE | Informs about performance related aspects. |
RENDERING | Anything relate to rendering rows or activities. |
REPOSITORY | Lists repository operations. |
Configuration File
The following file can be used to configure logging for FlexGanttFX.
# To use this property file add the following command line argument: # -Djava.util.logging.config.file=${project_loc}/log.properties # Specify the handlers to create in the root logger # (all loggers are children of the root logger) # The following creates two handlers # handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler handlers = java.util.logging.ConsoleHandler # Set the default logging level for the root logger .level = INFO # Set the default logging level for new ConsoleHandler instances java.util.logging.ConsoleHandler.level = OFF # Set the default logging level for new FileHandler instances # java.util.logging.FileHandler.level = ALL # Set the default formatter for new ConsoleHandler instances java.util.logging.ConsoleHandler.formatter = com.flexganttfx.core.LoggingFormatter # FlexGanttFX logging domains com.flexganttfx.config.level = OFF com.flexganttfx.performance.level = OFF com.flexganttfx.repository.level = OFF com.flexganttfx.editing.level = OFF com.flexganttfx.navigation.level = OFF com.flexganttfx.rendering.level = OFF com.flexganttfx.dnd.level = OFF com.flexganttfx.events.level = OFF