Package net.tnemc.plugincore.paper.impl
Record Class PaperLogProvider
java.lang.Object
java.lang.Record
net.tnemc.plugincore.paper.impl.PaperLogProvider
- All Implemented Interfaces:
LogProvider
BukkitLogProvider
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
ConstructorsConstructorDescriptionPaperLogProvider(Logger logger) Creates an instance of aPaperLogProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(String message, DebugLevel level) Sends a message related to debug purposes.final booleanIndicates whether some other object is "equal to" this one.voiderror(String message, Exception exception, DebugLevel level) Sends an error-related message.voiderror(String message, DebugLevel level) Sends an error-related message.final inthashCode()Returns a hash code value for this object.voidinform(String message, DebugLevel level) Sends an informative message, which doesn't contain an error or debug message.logger()Returns the value of theloggerrecord component.final StringtoString()Returns a string representation of this record class.voidwarning(String message, DebugLevel level) Sends a warning message.
-
Constructor Details
-
PaperLogProvider
Creates an instance of aPaperLogProviderrecord class.- Parameters:
logger- the value for theloggerrecord component
-
-
Method Details
-
inform
Sends an informative message, which doesn't contain an error or debug message.- Specified by:
informin interfaceLogProvider- Parameters:
message- The message to send.level- TheDebugLevelto log this message at.
-
debug
Sends a message related to debug purposes.- Specified by:
debugin interfaceLogProvider- Parameters:
message- The message to send.level- TheDebugLevelto log this message at.
-
warning
Sends a warning message.- Specified by:
warningin interfaceLogProvider- Parameters:
message- The message to send.level- TheDebugLevelto log this message at.
-
error
Sends an error-related message.- Specified by:
errorin interfaceLogProvider- Parameters:
message- The message to send.level- TheDebugLevelto log this message at.
-
error
Sends an error-related message.- Specified by:
errorin interfaceLogProvider- Parameters:
message- The message to send.exception- The error'sException.level- TheDebugLevelto log this message at.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
logger
Returns the value of theloggerrecord component.- Returns:
- the value of the
loggerrecord component
-