001
014
015 package com.liferay.portal.log;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactory;
019 import com.liferay.util.log4j.Log4JUtil;
020
021 import org.apache.log4j.LogManager;
022
023
026 public class Log4jLogFactoryImpl implements LogFactory {
027
028 public Log getLog(Class<?> c) {
029 return getLog(c.getName());
030 }
031
032 public Log getLog(String name) {
033 return new Log4jLogImpl(LogManager.getLogger(name));
034 }
035
036 public void setLevel(String name, String priority, boolean custom) {
037 Log4JUtil.setLevel(name, priority, custom);
038 }
039
040 }