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

com.zhangyue.we.anoprocesser.Log Maven / Gradle / Ivy

package com.zhangyue.we.anoprocesser;

import javax.annotation.processing.Messager;
import javax.tools.Diagnostic;

/**
 * @author chengwei 2018/8/7
 */
public class Log {
    private static Messager sMessager;

    public static void init(Messager msger) {
        sMessager = msger;
    }

    public static void w(String msg) {
        if (sMessager != null) {
            sMessager.printMessage(Diagnostic.Kind.OTHER, msg);
        }
    }

    public static void e(String msg) {
        if (sMessager != null) {
            sMessager.printMessage(Diagnostic.Kind.ERROR, msg);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy