Skip to content

Instantly share code, notes, and snippets.

@Komarev
Created March 21, 2016 11:09
Show Gist options
  • Save Komarev/3f0d86ae459b7852624a to your computer and use it in GitHub Desktop.
Save Komarev/3f0d86ae459b7852624a to your computer and use it in GitHub Desktop.
class MyClass : BaseActivity() {
companion object {
val LOG = Logger.getLogger(MyClass::class.java.name)
}
fun foo() {
LOG.warn("Hello from MyClass") // works good
}
}
class MyClass2 : BaseActivity(), AnkoLogger {
fun foo() {
info("everything by plan") // works good
debug("oh my") // can't find this message in logcat
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment