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

utils.Logger.kt Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy