com.ybo.trackingplugin.tracerlib.defaulttracer.tracers.SimplestDefaultTracer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traceplugin Show documentation
Show all versions of traceplugin Show documentation
gradle plugin allowing to add automatic logs (or other process) at the start of each traced method
package com.ybo.trackingplugin.tracerlib.defaulttracer.tracers
import com.ybo.trackingplugin.tracerlib.Tracer
import com.ybo.trackingplugin.tracerlib.Tracer.TraceAnnotationName
import com.ybo.trackingplugin.tracerlib.Tracer.TraceHistoryManagementAction
import com.ybo.trackingplugin.tracerlib.Tracer.TraceHistoryManagementAction.None
class SimplestDefaultTracer : Tracer {
override fun trace(
defaultMessage: String,
java: Boolean,
annotationName: TraceAnnotationName,
method: Tracer.Method,
history: List,
parameterValues: Array,
): TraceHistoryManagementAction {
println("$defaultMessage method $method")
return None
}
}