A very simple logging library for android.
Offers ONLY debug and error logging variants, and a simple boolean flag to turn it all off.
A typical usage (kotlin):
SimpleLogger.shouldLog = BuildConfig.DEBUG;
SimpleLogger.log("Activity", "Something noteworthy happened")
SimpleLogger.log(this, "Error!", Exception("Something went wrong"))
More details:
Logger
is a simple interface and can be customized to your needs.
By default, SimpleLogger uses the provided AndroidLogger
class.
Note: The log tag is derived from the toString() result of the object passed in.
repositories {
jcenter()
}
dependencies {
implementation 'click.simone:simplelogger:<version>'
}