Package com.inmobi.logging.remote
Class RemoteLogger
-
- All Implemented Interfaces:
public final class RemoteLoggerSaves the logs that is to be synced remotely. It will take 2 levers (internal lever- based on sampling and external lever - based on external factors) into consideration before saving the log. If both of them are false then the logging session will be dropped. If any of them is true then the logs will be sent.
-
-
Method Summary
Modifier and Type Method Description final StringgetTAG()final Unitlog(LogLevel logLevel, String tag, String message)final UnitupdateVitals(String key, String value)final Unitreconfigure(InMobiLogger.LoggerConfiguration config)final Unitcheckpoint()Save the logger locally. final Unitfinish()Saves the logs locally. final BooleanisSampled()final UnitsetExternalLever(Boolean externalLever)final StringgetFileName()final UnitsetLogLevelValidator(LogLevelValidator logLevelValidator)final UnitsetSamplingValidator(SamplingValidator samplingValidator)final JSONArraygetLogData()final UnitclearLogData()final JSONObjectgetVitals()final IntegergetCheckpointsCalled()final BooleanisFinishCalled()-
-
Method Detail
-
updateVitals
final Unit updateVitals(String key, String value)
-
reconfigure
final Unit reconfigure(InMobiLogger.LoggerConfiguration config)
-
checkpoint
final Unit checkpoint()
Save the logger locally. This session is not marked as finished
-
finish
final Unit finish()
Saves the logs locally. It checks if logs should be sampled and if they are sampled. If not then the session is ignored. The logger is marked as finished. No more modifications are allowed
-
setExternalLever
final Unit setExternalLever(Boolean externalLever)
-
getFileName
final String getFileName()
-
setLogLevelValidator
final Unit setLogLevelValidator(LogLevelValidator logLevelValidator)
-
setSamplingValidator
final Unit setSamplingValidator(SamplingValidator samplingValidator)
-
getLogData
final JSONArray getLogData()
-
clearLogData
final Unit clearLogData()
-
getVitals
final JSONObject getVitals()
-
getCheckpointsCalled
final Integer getCheckpointsCalled()
-
isFinishCalled
final Boolean isFinishCalled()
-
-
-
-