Package io.sentry
Class SentryLogEvent
java.lang.Object
io.sentry.SentryLogEvent
- All Implemented Interfaces:
JsonSerializable,JsonUnknown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionSentryLogEvent(@NotNull SentryId traceId, @NotNull SentryDate timestamp, @NotNull String body, @NotNull SentryLogLevel level) SentryLogEvent(@NotNull SentryId traceId, @NotNull Double timestamp, @NotNull String body, @NotNull SentryLogLevel level) -
Method Summary
Modifier and TypeMethodDescription@Nullable Map<String,SentryLogEventAttributeValue> @NotNull StringgetBody()@NotNull SentryLogLevelgetLevel()@Nullable Integer@NotNull Doublevoidserialize(@NotNull ObjectWriter writer, @NotNull ILogger logger) voidsetAttributes(@Nullable Map<String, SentryLogEventAttributeValue> attributes) voidvoidsetLevel(@NotNull SentryLogLevel level) voidsetSeverityNumber(@Nullable Integer severityNumber) voidsetTimestamp(@NotNull Double timestamp) voidsetUnknown(@Nullable Map<String, Object> unknown)
-
Constructor Details
-
SentryLogEvent
public SentryLogEvent(@NotNull @NotNull SentryId traceId, @NotNull @NotNull SentryDate timestamp, @NotNull @NotNull String body, @NotNull @NotNull SentryLogLevel level) -
SentryLogEvent
public SentryLogEvent(@NotNull @NotNull SentryId traceId, @NotNull @NotNull Double timestamp, @NotNull @NotNull String body, @NotNull @NotNull SentryLogLevel level)
-
-
Method Details
-
getTimestamp
-
setTimestamp
-
getBody
-
setBody
-
getLevel
-
setLevel
-
getAttributes
-
setAttributes
-
getSeverityNumber
-
setSeverityNumber
-
serialize
public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException - Specified by:
serializein interfaceJsonSerializable- Throws:
IOException
-
getUnknown
- Specified by:
getUnknownin interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknownin interfaceJsonUnknown
-