MyLogLibrary | : construction : - Simple Android Kotlin logger | Android library
kandi X-RAY | MyLogLibrary Summary
kandi X-RAY | MyLogLibrary Summary
:construction: - Simple Android Kotlin logger (2017/2020)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MyLogLibrary
MyLogLibrary Key Features
MyLogLibrary Examples and Code Snippets
Community Discussions
Trending Discussions on MyLogLibrary
QUESTION
I have a settingKey[Level.Value]
which is for the level of logs. I would like to set this value prior to everything else so that my log level is applied to everything.
( I know there is a setLogLevel
but I would like to be able to set it, only for my Plugin )
If my setting is named myLogLevel
, I tried to call myLogLevel.value
inside each of my tasks and settings.
The issue seems to be that if I am not using the value yield by it, then the setting is not executed.
My setting is something like that :
...ANSWER
Answered 2018-Nov-19 at 22:40I found a solution :
You need two settingKey
.
The first one is : myLogLevel: settingKey[Level.Value]
.
And consumer of your plugin can set it to whatever in their build.sbt
and you can put a default value in your settings: myLogLevel := Level.Info
.
Then, you have a second setting: myLog: settingKey[Logger]
which is not exposed to the consumer and you define it like :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MyLogLibrary
Consider adding following proguard rule:
Next (All the settings below are optional):
Also don't forget to add: android:name=".MyApplication" at your application tag in AndroidManifest.xml
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page