- Minimum Android SDK: MBLoggerKit requires a minimum API level of 19.
- Compile Android SDK: MBLoggerKit requires you to compile against minimum API level 27.
This module contains the Logger used by all other Mercedes-Benz Mobile SDK modules.
Initialize it the following way in your Application
subclass:
MBLoggerKit.usePrinterConfig(PrinterConfig.Builder()
.addAdapter(AndroidLogAdapter.Builder()
.setLoggingEnabled(loggingEnabled)
.build()
).build()
)
Log your statements as you would with standard Android logs but use the class MBLoggerKit
instead of Log
,
e.g. MBLoggerKit.d("My debug log statement.")
.
Add the following maven url to your project build.gradle
:
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://pkgs.dev.azure.com/daimler-ris/sdk/_packaging/release/maven/v1'
}
}
}
Add to your app's build.gradle
:
implementation "com.daimler.mm:MBLoggerKit:$mb_logger_kit_version"
We welcome any contributions. If you want to contribute to this project, please read the contributing guide.
Please read our Code of Conduct as it is our base for interaction.
This project is licensed under the MIT LICENSE.
Please visit https://mbition.io/en/home/index.html for information on the provider.
Notice: Before you use the program in productive use, please take all necessary precautions, e.g. testing and verifying the program with regard to your specific use. The program was tested solely for our own use cases, which might differ from yours.