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

com.infusers.core.logger.ILogger Maven / Gradle / Ivy

package com.infusers.core.logger;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class ILogger {
    private final Logger logger;

    public ILogger(Class clazz) {
        this.logger = LogManager.getLogger(clazz);
    }
    
    public void logSeparator() {
        //logger.info("======================================================================");
        logger.info("**********************************************************************");
        
    }    
    
    public void info(String message) {
        logger.info(message);
    }

    public void warn(String message) {
        logger.warn(message);
    }   
    
    public void warnWithSeparator(String message) {
        this.logSeparator();    	
        this.warn(message);
        this.logSeparator();
    }  
    
    public void warnWithSeparator(String message, boolean b) {
        this.logSeparator();    	
        this.warn(message, b);
        this.logSeparator();
    }      
    
    public void warn(String message, boolean b) {
        logger.warn(message, b);
    }      
    
    public void error(String message) {
        logger.error(message);
    }    

    public void errorWithSeparator(String message) {
        this.logSeparator();    	
        this.error(message);
        this.logSeparator();
    }     
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy