org.xpathqs.driver.log.Log.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xpathqs-driver Show documentation
Show all versions of xpathqs-driver Show documentation
Framework for the interaction with drivers for the xpathqs-core
package org.xpathqs.driver.log
import org.xpathqs.driver.actions.IAction
object Log : ILog {
private lateinit var logger: ILog
fun init(logger: ILog) {
Log.logger = logger
}
override fun log(msg: String) {
logger.log(msg)
}
override fun error(msg: String) {
logger.error(msg)
}
override fun action(msg: String, lambda: () -> T): T {
return logger.action(msg, lambda)
}
override fun action(action: IAction) {
logger.action(action)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy