logError

fun <T> T.logError(tag: String = TAG): T

Log this object as error.