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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
LogOptionspublic LogOptions()
 
- 
- 
Method Details- 
ofDeprecated.
- 
ofpublic static LogOptions of(LogGranularity granularity, Set<LogTarget> logTargets, EnumMap<LogTarget, String> formats) Create new logging options.- Parameters:
- granularity- the granularity at which to log
- logTargets- where to log
- formats- in which formats to log
- Returns:
- the new logging options
 
- 
isEmptyGet 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
- 
cloneCreate a deep copy of these logging options.
- 
withGranularitySet the log granularity.
- 
withLogTargetsSet the log targets.
- 
withFormatsSet the log formats.
- 
getGranularityGet the log granularity.
- 
getTargets
- 
getFormats
- 
getFormat
- 
defaultLogFormats
- 
equals
- 
hashCode
- 
toString
 
-