
com.yunpian.sdk.util.LoggerUtil Maven / Gradle / Ivy
package com.yunpian.sdk.util;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import java.util.Date;
import java.util.Properties;
/**
* Created by bingone on 15/11/10.
*/
public class LoggerUtil {
private static boolean isLog = false;
// private static Logger logger = Logger.getLogger(YunpianClient.class);
private static final Properties properties = new Properties();
static {
try {
properties.load(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("yunpian_log4j.properties"));
PropertyConfigurator.configure(properties);
} catch (Exception e) {
e.printStackTrace();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy