Package io.micronaut.azure.logging
Record Class LogEntry
java.lang.Object
java.lang.Record
io.micronaut.azure.logging.LogEntry
- Record Components:
- data- the Logback event serialized as a String by an- Encoder
- eventTimestamp- the Logback event timestamp
- source- the source of the log event; can be specified in the appender configuration and defaults to the host of the server
- subject- the subject of the log event; can be specified in the appender configuration and defaults to the application name
@Internal
public record LogEntry(String data, long eventTimestamp, String source, String subject)
extends Record
Contains the logging data sent to Azure. Property names are capitalized
 because they're used as the column names in the Log Analytics workspace
 table that users will configure.
- Since:
- 5.6
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theeventTimestamprecord component.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
LogEntryCreates an instance of aLogEntryrecord class.- Parameters:
- data- the value for the- datarecord component
- eventTimestamp- the value for the- eventTimestamprecord component
- source- the value for the- sourcerecord component
- subject- the value for the- subjectrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
dataReturns the value of thedatarecord component.- Returns:
- the value of the datarecord component
 
- 
eventTimestamppublic long eventTimestamp()Returns the value of theeventTimestamprecord component.- Returns:
- the value of the eventTimestamprecord component
 
- 
sourceReturns the value of thesourcerecord component.- Returns:
- the value of the sourcerecord component
 
- 
subjectReturns the value of thesubjectrecord component.- Returns:
- the value of the subjectrecord component
 
 
-