Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
fun logException(e: Throwable, level = Log.ERROR) {
// implementation
// Then you can call the method without providing the second parameter
logException(IllegalStateException("Test exception"))
logException(IllegalStateException("Test exception"), Log.WARN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment