Record Class DynamicLogSink
java.lang.Object
java.lang.Record
dev.pfaff.log4truth.DynamicLogSink
- All Implemented Interfaces:
LogSink
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicLogSink(MethodHandle getter) Creates an instance of aDynamicLogSinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidemit(String source, StringSupplier message, @Nullable Throwable throwable, List<String> tags, Thread thread) final booleanIndicates whether some other object is "equal to" this one.getter()Returns the value of thegetterrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicLogSink
Creates an instance of aDynamicLogSinkrecord class.- Parameters:
getter- the value for thegetterrecord component
-
-
Method Details
-
emit
-
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). -
getter
Returns the value of thegetterrecord component.- Returns:
- the value of the
getterrecord component
-