utils.Logger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diff-dispatcher-ktx-processor Show documentation
Show all versions of diff-dispatcher-ktx-processor Show documentation
Kotlin extension bridge library for diff-dispatcher
package com.github.rougsig.diffdispatcherktx.processor.utils
import javax.annotation.processing.Messager
import javax.lang.model.element.Element
import javax.tools.Diagnostic
internal class Logger(private val messager: Messager) {
fun note(message: String, element: Element) {
messager.printMessage(Diagnostic.Kind.NOTE, message, element)
}
fun warning(message: String, element: Element) {
messager.printMessage(Diagnostic.Kind.WARNING, message, element)
}
fun error(message: String, element: Element) {
messager.printMessage(Diagnostic.Kind.ERROR, message, element)
}
}