Package io.sentry
Class SentryLogEvent
java.lang.Object
io.sentry.SentryLogEvent
- All Implemented Interfaces:
JsonSerializable
,JsonUnknown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static 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 String
getBody()
@NotNull SentryLogLevel
getLevel()
@Nullable Integer
@NotNull Double
void
serialize
(@NotNull ObjectWriter writer, @NotNull ILogger logger) void
setAttributes
(@Nullable Map<String, SentryLogEventAttributeValue> attributes) void
void
setLevel
(@NotNull SentryLogLevel level) void
setSeverityNumber
(@Nullable Integer severityNumber) void
setTimestamp
(@NotNull Double timestamp) void
setUnknown
(@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:
serialize
in interfaceJsonSerializable
- Throws:
IOException
-
getUnknown
- Specified by:
getUnknown
in interfaceJsonUnknown
-
setUnknown
- Specified by:
setUnknown
in interfaceJsonUnknown
-