ScriptingLogger.kt (988B) - raw
1 package me.rhunk.snapenhance.common.scripting 2 3 import me.rhunk.snapenhance.common.logger.AbstractLogger 4 import me.rhunk.snapenhance.common.logger.LogChannel 5 6 class ScriptingLogger( 7 private val logger: AbstractLogger 8 ) { 9 companion object { 10 private val TAG = LogChannel.SCRIPTING.channel 11 } 12 13 fun debug(message: Any?, tag: String = TAG) { 14 logger.debug(message, tag) 15 } 16 17 fun error(message: Any?, tag: String = TAG) { 18 logger.error(message, tag) 19 } 20 21 fun error(message: Any?, throwable: Throwable, tag: String = TAG) { 22 logger.error(message, throwable, tag) 23 } 24 25 fun info(message: Any?, tag: String = TAG) { 26 logger.info(message, tag) 27 } 28 29 fun verbose(message: Any?, tag: String = TAG) { 30 logger.verbose(message, tag) 31 } 32 33 fun warn(message: Any?, tag: String = TAG) { 34 logger.warn(message, tag) 35 } 36 37 fun assert(message: Any?, tag: String = TAG) { 38 logger.assert(message, tag) 39 } 40 }