Created
February 18, 2019 17:17
-
-
Save jeremyrempel/dbddd0ac12594193ec52c7036b089d6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log | |
actual fun log(level: LogLevel, tag: String, message: String, error: Throwable) { | |
when (level) { | |
is LogLevel.DEBUG -> Log.d(tag, message, error) | |
is LogLevel.INFO -> Log.i(tag, message, error) | |
is LogLevel.WARN -> Log.w(tag, message, error) | |
is LogLevel.ERROR -> Log.e(tag, message, error) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how import "import android.util.Log" in ShareCode module? I can't :'(