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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Service details. -
Constructor Summary
ConstructorDescriptionCreates an instance of aGraylogExtendedLogFormatProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.get
(org.springframework.core.env.Environment environment) Return a newGraylogExtendedLogFormatProperties
from bound from properties in the givenEnvironment
.final int
hashCode()
Returns a hash code value for this object.host()
Returns the value of thehost
record component.void
jsonMembers
(JsonWriter.Members<?> members) AddJsonWriter
members for the service.service()
Returns the value of theservice
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GraylogExtendedLogFormatProperties
public GraylogExtendedLogFormatProperties(String host, GraylogExtendedLogFormatProperties.Service service) Creates an instance of aGraylogExtendedLogFormatProperties
record class.
-
-
Method Details
-
jsonMembers
AddJsonWriter
members for the service.- Parameters:
members
- the members to add to
-
get
public static GraylogExtendedLogFormatProperties get(org.springframework.core.env.Environment environment) Return a newGraylogExtendedLogFormatProperties
from bound from properties in the givenEnvironment
.- Parameters:
environment
- the source environment- Returns:
- a new
GraylogExtendedLogFormatProperties
instance
-
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 thehost
record component.- Returns:
- the value of the
host
record component
-
service
Returns the value of theservice
record component.- Returns:
- the value of the
service
record component
-