Add isEnabled methods
igelgrun opened this issue · comments
- Log.isVerboseEnabled()
- Log.isDebugEnabled()
... etc ...
I use your library for logging and I could not disable the logging in props.
Imp classes:
import com.noveogroup.android.log.Logger;
import com.noveogroup.android.log.LoggerManager;
import com.noveogroup.android.log.Log;
Add File \ src \ main \ res \ android-logger.propertis
Props:
root= ASSERT:MyApplication
com.exmpl.myexceptionhandler= ASSERT:MyApplication-Database
com.exmpl.myexceptionhandler=ASSERT:MyApplication-UI
Also tried using this props
root= VERBOSE:MyApplication
com.exmpl.myexceptionhandler= VERBOSE:MyApplication-Database
com.exmpl.myexceptionhandler= VERBOSE:MyApplication-UI
But all From Log.i, Log.e are displayed in both cases and Log.isEnabled(Logger.Level.ERROR) always true.
How can I disable the logs?
Hello,
There are two mistakes:
- File "android-logger.propertis" should be "android-logger.properties"
- Property "com.exmpl.myexceptionhandler" is configured twice, so "MyApplication-UI" replaces "MyApplication-Database".
Hope it helps you.
is<Level>Enabled() methods implemented in 2f4671d