Package com.oracle.content.sdk
Class ContentLogging
java.lang.Object
com.oracle.content.sdk.ContentLogging
Specify how the SDK should handle logging. Logging level can be NONE,
INFO, or HTTP (which includes full http traffic). An optional LogCallback can
be specified to intercept logging messages for your own use.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Default logger just uses standard Android loggingstatic interface
To provide your own handling of logging implement this interfacestatic enum
-
Constructor Summary
ConstructorsConstructorDescriptionContentLogging
(ContentLogging.LogLevel logLevel) Creating a logging policy with specified level NONE, INFO, or HTTP.ContentLogging
(ContentLogging.LogLevel logLevel, @NotNull ContentLogging.LogCallback customLogger) Set specific logging logLevel and use a custom logger -
Method Summary
Modifier and TypeMethodDescriptionGet the current log level in useboolean
boolean
void
-
Constructor Details
-
ContentLogging
public ContentLogging(ContentLogging.LogLevel logLevel, @NotNull @NotNull ContentLogging.LogCallback customLogger) Set specific logging logLevel and use a custom logger- Parameters:
logLevel
-ContentLogging.LogLevel
for loggingcustomLogger
- Specified LogCallback
-
ContentLogging
Creating a logging policy with specified level NONE, INFO, or HTTP.- Parameters:
logLevel
-ContentLogging.LogLevel
for logging
-
-
Method Details
-
getLogLevel
Get the current log level in use- Returns:
- level for logging
-
isEnabled
public boolean isEnabled() -
isHttpEnabled
public boolean isHttpEnabled() -
log
-