Record Class GraylogExtendedLogFormatProperties
java.lang.Object
java.lang.Record
org.springframework.boot.logging.structured.GraylogExtendedLogFormatProperties
- Record Components:
host- the application nameservice- the version of the application
public record GraylogExtendedLogFormatProperties(String host, GraylogExtendedLogFormatProperties.Service service)
extends Record
Service details for Graylog Extended Log Format structured logging.
- Since:
- 3.4.0
- Author:
- Samuel Lissner, Phillip Webb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordService details. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aGraylogExtendedLogFormatPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(Environment environment) Return a newGraylogExtendedLogFormatPropertiesfrom bound from properties in the givenEnvironment.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.voidjsonMembers(JsonWriter.Members<?> members) AddJsonWritermembers for the service.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GraylogExtendedLogFormatProperties
public GraylogExtendedLogFormatProperties(String host, GraylogExtendedLogFormatProperties.Service service) Creates an instance of aGraylogExtendedLogFormatPropertiesrecord class.
-
-
Method Details
-
jsonMembers
AddJsonWritermembers for the service.- Parameters:
members- the members to add to
-
get
Return a newGraylogExtendedLogFormatPropertiesfrom bound from properties in the givenEnvironment.- Parameters:
environment- the source environment- Returns:
- a new
GraylogExtendedLogFormatPropertiesinstance
-
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
public final int 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). -
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-