-
- All Implemented Interfaces:
-
co.elastic.apm.android.sdk.configuration.logging.LoggingPolicy
public class DefaultLoggingPolicy implements LoggingPolicy
-
-
Constructor Summary
Constructors Constructor Description DefaultLoggingPolicy(Provider<Boolean> appIsDebuggable, Provider<Boolean> agentIsInitialized)
-
Method Summary
Modifier and Type Method Description static DefaultLoggingPolicycreate()booleanisEnabled()Whether logging in general is enabled or not. LogLevelgetMinimumLevel()If logging is enabled, this value will be checked later to filter which logs willget printed. -
-
Method Detail
-
create
static DefaultLoggingPolicy create()
-
isEnabled
boolean isEnabled()
Whether logging in general is enabled or not. This value will be checked before the log level.
-
getMinimumLevel
LogLevel getMinimumLevel()
If logging is enabled, this value will be checked later to filter which logs willget printed. Logs with at least the level provided here or higher will pass, other ones (below the level provided here) will be ignored.
-
-
-
-