remove unecessary Enum

This commit is contained in:
NikkyAI 2018-02-11 21:23:54 +01:00
parent f69eac719c
commit 09c8465fe3
2 changed files with 6 additions and 44 deletions

View File

@ -21,11 +21,11 @@ abstract class IMatterLink {
abstract fun log(level: String, formatString: String, vararg data: Any) abstract fun log(level: String, formatString: String, vararg data: Any)
fun fatal(formatString: String, vararg data: Any) = log(Level.FATAL.name, formatString, *data) fun fatal(formatString: String, vararg data: Any) = log("^FATAL", formatString, *data)
fun error(formatString: String, vararg data: Any) = log(Level.ERROR.name, formatString, *data) fun error(formatString: String, vararg data: Any) = log("ERROR", formatString, *data)
fun warn(formatString: String, vararg data: Any) = log(Level.WARN.name, formatString, *data) fun warn(formatString: String, vararg data: Any) = log("WARN", formatString, *data)
fun info(formatString: String, vararg data: Any) = log(Level.INFO.name, formatString, *data) fun info(formatString: String, vararg data: Any) = log("INFO", formatString, *data)
fun debug(formatString: String, vararg data: Any) = log(Level.DEBUG.name, formatString, *data) fun debug(formatString: String, vararg data: Any) = log("DEBUG", formatString, *data)
fun trace(formatString: String, vararg data: Any) = log(Level.TRACE.name, formatString, *data) fun trace(formatString: String, vararg data: Any) = log("TRACE", formatString, *data)
} }

View File

@ -1,38 +0,0 @@
package matterlink
enum class Level(val level: Int) {
/**
* No events will be logged.
*/
OFF(0),
/**
* A severe error that will prevent the application from continuing.
*/
FATAL(1),
/**
* An error in the application, possibly recoverable.
*/
ERROR(2),
/**
* An event that might possible lead to an error.
*/
WARN(3),
/**
* An event for informational purposes.
*/
INFO(4),
/**
* A general debugging event.
*/
DEBUG(5),
/**
* A fine-grained debug message, typically capturing the flow through the application.
*/
TRACE(6),
}