Record Class ConsoleMessageMetadata
java.lang.Object
java.lang.Record
dev.ua.theroer.magicutils.logger.ConsoleMessageMetadata
- Record Components:
level- the log level of the messagesubLoggerName- the name of the sub-logger, or null for the root logger
-
Constructor Summary
ConstructorsConstructorDescriptionConsoleMessageMetadata(LogLevel level, @Nullable String subLoggerName) Creates an instance of aConsoleMessageMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.@Nullable StringReturns the value of thesubLoggerNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConsoleMessageMetadata
Creates an instance of aConsoleMessageMetadatarecord class.- Parameters:
level- the value for thelevelrecord componentsubLoggerName- the value for thesubLoggerNamerecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
level
-
subLoggerName
Returns the value of thesubLoggerNamerecord component.- Returns:
- the value of the
subLoggerNamerecord component
-