Class LoggingSectionSpigot


public class LoggingSectionSpigot extends LoggingSection<LoggingSectionSpigot.Result>
Represents a section in the configuration for logging settings specific to the Spigot implementation.

This section is used to configure logging behavior, such as enabling or disabling specific loggers.

  • Constructor Details

  • Method Details

    • getResult

      protected LoggingSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) throws org.spongepowered.configurate.serialize.SerializationException
      Description copied from class: ConfigSection
      Gets the result of this configuration section.
      Specified by:
      getResult in class ConfigSection<LoggingSectionSpigot.Result>
      Parameters:
      sectionNode - The configuration node for this section.
      silent - When true, the method will not log any informational/status messages when parsing the results.
      Returns:
      the result of this configuration section
      Throws:
      org.spongepowered.configurate.serialize.SerializationException - If an error occurs during serialization.
    • getResultConsumer

      public @Nullable Consumer<LoggingSectionSpigot.Result> getResultConsumer()
      Description copied from class: ConfigSection
      Gets the consumer that will handle the result of this configuration section.
      Specified by:
      getResultConsumer in class ConfigSection<LoggingSectionSpigot.Result>
      Returns:
      the consumer that will handle the result, or null if no consumer is defined.