Class LoggingSectionSpigot
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.config.ConfigSection<LoggingSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.core.config.LoggingSection<LoggingSectionSpigot.Result>
nl.pim16aap2.animatedarchitecture.spigot.core.config.LoggingSectionSpigot
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the result of the logging configuration section. -
Field Summary
Fields inherited from class LoggingSection
DEFAULT_DEBUG, DEFAULT_LOG_LEVEL, PATH_DEBUG, PATH_LOG_LEVEL, SECTION_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionLoggingSectionSpigot(@Nullable Consumer<LoggingSectionSpigot.Result> resultConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected LoggingSectionSpigot.ResultgetResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) Gets the result of this configuration section.@Nullable Consumer<LoggingSectionSpigot.Result> Gets the consumer that will handle the result of this configuration section.Methods inherited from class LoggingSection
buildInitialLimitsNode, getSectionTitleMethods inherited from class ConfigSection
applyResults, formatDefaultCollection, getSection, populateDynamicData
-
Constructor Details
-
LoggingSectionSpigot
-
-
Method Details
-
getResult
protected LoggingSectionSpigot.Result getResult(org.spongepowered.configurate.ConfigurationNode sectionNode, boolean silent) throws org.spongepowered.configurate.serialize.SerializationException Description copied from class:ConfigSectionGets the result of this configuration section.- Specified by:
getResultin classConfigSection<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
Description copied from class:ConfigSectionGets the consumer that will handle the result of this configuration section.- Specified by:
getResultConsumerin classConfigSection<LoggingSectionSpigot.Result>- Returns:
- the consumer that will handle the result, or null if no consumer is defined.
-