Record Class LogFile
java.lang.Object
java.lang.Record
br.net.dd.netherwingcore.common.logging.LogFile
- Record Components:
filename- The name(s) of the log file(s) where messages should be logged.
- All Implemented Interfaces:
Detail
Represents a log file target for logging messages. This record encapsulates the filename(s) of the log file(s)
where log messages should be written. It implements the
Detail interface, allowing it to be used as
a detail in log messages to specify the target log file(s).
Example usage:
Log.log("This is an informational message.", new LogFile("application.log"));
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.String[]filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LogFile
-
-
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). -
filename
-