Class LogOptions
java.lang.Object
com.janboerman.invsee.spigot.api.logging.LogOptions
- All Implemented Interfaces:
Cloneable
Options for logging interactions with
SpectatorInventoryView
s.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a deep copy of these logging options.Get the default log formats.static LogOptions
empty()
Create new no-op logging options.boolean
Get the log format for a given log target.Get the log formats.Get the log granularity.Get the log targets.int
hashCode()
static boolean
isEmpty
(LogOptions options) Get whether the logging options are effectively zero.static LogOptions
of
(LogGranularity granularity, Set<LogTarget> logTargets) Deprecated.static LogOptions
Create 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
-