Class LogOptions
java.lang.Object
com.janboerman.invsee.spigot.api.logging.LogOptions
- All Implemented Interfaces:
Cloneable
Options for logging interactions with
SpectatorInventoryViews.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a deep copy of these logging options.Get the default log formats.static LogOptionsempty()Create new no-op logging options.booleanGet the log format for a given log target.Get the log formats.Get the log granularity.Get the log targets.inthashCode()static booleanisEmpty(LogOptions options) Get whether the logging options are effectively zero.static LogOptionsof(LogGranularity granularity, Set<LogTarget> logTargets) Deprecated.static LogOptionsCreate new logging options.toString()withFormats(Map<LogTarget, String> logFormats) Set the log formats.withGranularity(LogGranularity granularity) Set the log granularity.withLogTargets(Collection<LogTarget> logTargets) Set the log targets.
-
Field Details
-
FORMAT_SERVER_LOG_FILE
- See Also:
-
FORMAT_PLUGIN_LOG_FILE
- See Also:
-
FORMAT_SPECTATOR_LOG_FILE
- See Also:
-
FORMAT_CONSOLE
- See Also:
-
-
Constructor Details
-
LogOptions
public LogOptions()
-
-
Method Details
-
of
Deprecated. -
of
public static LogOptions of(LogGranularity granularity, Set<LogTarget> logTargets, EnumMap<LogTarget, String> formats) Create new logging options.- Parameters:
granularity- the granularity at which to loglogTargets- where to logformats- in which formats to log- Returns:
- the new logging options
-
isEmpty
Get whether the logging options are effectively zero.- Parameters:
options- the logging options- Returns:
- true if the logging options don't cause any logging, otherwise false
-
empty
-
clone
Create a deep copy of these logging options. -
withGranularity
Set the log granularity. -
withLogTargets
Set the log targets. -
withFormats
Set the log formats. -
getGranularity
Get the log granularity. -
getTargets
-
getFormats
-
getFormat
-
defaultLogFormats
-
equals
-
hashCode
-
toString
-