All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xpathqs.driver.log.ConsoleLog.kt Maven / Gradle / Ivy

There is a newer version: 0.0.9
Show newest version
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