Record Class FLogger
java.lang.Object
java.lang.Record
net.flectone.pulse.util.logging.FLogger
public record FLogger(Consumer<LogRecord> logConsumer, Supplier<FileFacade> fileFacadeSupplier)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFLogger(Consumer<LogRecord> logConsumer, Supplier<FileFacade> fileFacadeSupplier) Creates an instance of aFLoggerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileFacadeSupplierrecord component.final inthashCode()Returns a hash code value for this object.voidvoidvoidReturns the value of thelogConsumerrecord component.voidvoidvoidvoidvoidvoidvoidfinal StringtoString()Returns a string representation of this record class.voidvoidvoidvoidvoidvoid
-
Field Details
-
DEBUG_ENABLED
public static final boolean DEBUG_ENABLED -
ERROR_MESSAGE_REPORT
- See Also:
-
-
Constructor Details
-
FLogger
Creates an instance of aFLoggerrecord class.- Parameters:
logConsumer- the value for thelogConsumerrecord componentfileFacadeSupplier- the value for thefileFacadeSupplierrecord component
-
-
Method Details
-
config
-
log
-
logEnabling
public void logEnabling() -
logEnabled
public void logEnabled() -
logDisabling
public void logDisabling() -
logDisabled
public void logDisabled() -
logReloading
public void logReloading() -
logReloaded
public void logReloaded() -
logDescription
public void logDescription() -
info
-
info
-
warning
-
warning
-
warning
-
warning
-
warning
-
warning
-
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). -
logConsumer
-
fileFacadeSupplier
Returns the value of thefileFacadeSupplierrecord component.- Returns:
- the value of the
fileFacadeSupplierrecord component
-