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

com.ajjpj.asysmon.config.log.ASysMonLogger Maven / Gradle / Ivy

There is a newer version: 1.0-pre28
Show newest version
package com.ajjpj.asysmon.config.log;

import com.ajjpj.abase.function.AFunction0NoThrow;
import com.ajjpj.asysmon.config.ADefaultConfigFactory;


/**
 * @author arno
 */
public abstract class ASysMonLogger {
    public abstract void debug(AFunction0NoThrow msg);
    public abstract void info(String msg);
    public abstract void warn(String msg);
    public abstract void warn(String msg, Exception exc);
    public abstract void error(String msg);
    public abstract void error(Exception exc);
    public abstract void error(String msg, Exception exc);

    /**
     * This method is the single point of access for loggers in A-SysMon
     */
    public static ASysMonLogger get(Class context) {
        return ADefaultConfigFactory.getConfiguredLogger().getLogger(context);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy