Package io.sentry.jul
Class SentryHandler
java.lang.Object
java.util.logging.Handler
io.sentry.jul.SentryHandler
Logging handler in charge of sending the java.util.logging records to a Sentry server.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
Name of theSentryEvent
extra property containing the Thread id. -
Constructor Summary
ConstructorDescriptionCreates an instance of SentryHandler.SentryHandler
(@NotNull SentryOptions options) Creates an instance of SentryHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
@NotNull Level
@NotNull Level
boolean
void
void
setMinimumBreadcrumbLevel
(@Nullable Level minimumBreadcrumbLevel) void
setMinimumEventLevel
(@Nullable Level minimumEventLevel) void
setPrintfStyle
(boolean printfStyle) Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Field Details
-
MECHANISM_TYPE
- See Also:
-
THREAD_ID
Name of theSentryEvent
extra property containing the Thread id.- See Also:
-
-
Constructor Details
-
SentryHandler
public SentryHandler()Creates an instance of SentryHandler. -
SentryHandler
Creates an instance of SentryHandler.- Parameters:
options
- the SentryOptions
-
-
Method Details
-
publish
-
flush
public void flush() -
close
- Specified by:
close
in classHandler
- Throws:
SecurityException
-
setPrintfStyle
public void setPrintfStyle(boolean printfStyle) -
setMinimumBreadcrumbLevel
-
getMinimumBreadcrumbLevel
-
setMinimumEventLevel
-
getMinimumEventLevel
-
isPrintfStyle
public boolean isPrintfStyle()
-