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

org.math.R.RLogSlf4j Maven / Gradle / Ivy

There is a newer version: 3.1.8
Show newest version
package org.math.R;

import org.slf4j.LoggerFactory;

public class RLogSlf4j implements RLog {

	@Override
	public void log(String text, Level level){
		if(Level.OUTPUT.equals(level)){
			LOGGER.debug(text);
		}else if(Level.INFO.equals(level)){
			LOGGER.info(text);
		}else if(Level.WARNING.equals(level)){
			LOGGER.warn(text);
		}else if(Level.ERROR.equals(level)){
			LOGGER.error(text);
		}else 
			LOGGER.trace(text);
	}

	@Override
	public void close() {
		          
	}
        
	public final static org.slf4j.Logger LOGGER = LoggerFactory.getLogger("RLogger");
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy