2b3e9fa689
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@153 a672b425-5310-4d7a-af5c-997e18724b81
21 lines
387 B
Kotlin
21 lines
387 B
Kotlin
/*
|
|
* Copyright (c) 2018. Bevilacqua Joey
|
|
*/
|
|
package ch.usi.inf.atelier.group1.util
|
|
|
|
import java.lang.Exception
|
|
|
|
object Log {
|
|
|
|
fun e(message: String = "", exception: Exception) {
|
|
e("$message: ${exception.message ?: "Unknown error"}")
|
|
}
|
|
|
|
fun e(message: String) {
|
|
System.err.println(message)
|
|
}
|
|
|
|
fun i(obj: Any) {
|
|
println(obj.toString())
|
|
}
|
|
} |