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

com.ybo.trackingplugin.tracerlib.defaulttracer.tracers.SimplestDefaultTracer.kt Maven / Gradle / Ivy

Go to download

gradle plugin allowing to add automatic logs (or other process) at the start of each traced method

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy