java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
is.codion.swing.common.ui.component.logging.LoggingLevelPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class LoggingLevelPanel extends JPanel
A UI panel for configuring logging levels for discovered Codion modules.

Presents a table where users can view and edit log levels for each module logger. The Level column is editable via a combo box, allowing selection from available log levels. The ROOT logger is not included in the table, as it is typically configured separately via application-level logging controls.

To apply changes to the logging system, call applyChanges() after the user has finished editing. This is typically done via an "OK" or "Apply" button in a dialog.

See Also:
  • Method Details

    • applyChanges

      public void applyChanges()
      Applies any modified log levels to the underlying logging system. This method stops any active cell editing before applying changes to ensure that uncommitted edits are included.
    • loggingLevelPanel

      public static LoggingLevelPanel loggingLevelPanel()
      Returns:
      a new LoggingLevelPanel instance with a default LoggingLevelModel
    • loggingLevelPanel

      public static LoggingLevelPanel loggingLevelPanel(LoggingLevelModel model)
      Parameters:
      model - the logging level model
      Returns:
      a new LoggingLevelPanel instance