mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
[driver-tests] move ideLogger to driver sdk
GitOrigin-RevId: d73dedd8df0536589847ec9fe4a81e0ba4ef3f7f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
302ca65ed7
commit
0c15cae2bc
@@ -0,0 +1,15 @@
|
||||
package com.intellij.driver.sdk
|
||||
|
||||
import com.intellij.driver.client.Driver
|
||||
import com.intellij.driver.client.Remote
|
||||
|
||||
|
||||
val Driver.ideLogger: DriverTestLogger
|
||||
get() = utility(DriverTestLogger::class)
|
||||
|
||||
@Remote("com.jetbrains.performancePlugin.DriverTestLogger", plugin = "com.jetbrains.performancePlugin")
|
||||
interface DriverTestLogger {
|
||||
fun info(text: String)
|
||||
fun warn(text: String)
|
||||
fun warn(t: Throwable)
|
||||
}
|
||||
@@ -14,5 +14,10 @@ internal class DriverTestLogger {
|
||||
fun warn(text: String) {
|
||||
LOG.warn(text)
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun warn(t: Throwable) {
|
||||
LOG.warn(t)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user