NOW LOADING

Logging

Overview

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 list shows the available domains.

  • 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