org.xpathqs.driver.log.ConsoleLog.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
class ConsoleLog : ILog {
override fun log(msg: String) {
println(msg)
}
override fun error(msg: String) {
println("error: $msg")
}
override fun action(msg: String, lambda: () -> T): T {
println("execute action $msg")
return lambda()
}
override fun action(action: IAction) {
println("execute action: ${action.name}")
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy