tryOrLog

inline fun <T> tryOrLog(closure: () -> T): T?

Returns the result of the given closure, or null if an Exception was raised. The Exception will be logged.