public static Log getLog(Class<?> clazz) { if(custom_log_factory != null) return custom_log_factory.getLog(clazz); if(ctor_class != null) { try { return ctor_class.newInstance(clazz); } catch(Throwable t) { throw new RuntimeException(t); } } if(use_jdk_logger) return new JDKLogImpl(clazz); if(IS_LOG4J2_AVAILABLE) return new Log4J2LogImpl(clazz); if (IS_SLF4J_AVAILABLE) return new Slf4jLogImpl(clazz); return new JDKLogImpl(clazz); }
public static Log getLog(String category) { if(custom_log_factory != null) return custom_log_factory.getLog(category); if(ctor_str != null) { try { ctor_str.newInstance(category); } catch(Throwable t) { throw new RuntimeException(t); } } if(use_jdk_logger) return new JDKLogImpl(category); if(IS_LOG4J2_AVAILABLE) return new Log4J2LogImpl(category); if (IS_SLF4J_AVAILABLE) return new Slf4jLogImpl(category); return new JDKLogImpl(category); }
public static Log getLog(Class<?> clazz) { if(custom_log_factory != null) return custom_log_factory.getLog(clazz); if(ctor_class != null) { try { return ctor_class.newInstance(clazz); } catch(Throwable t) { throw new RuntimeException(t); } } if(use_jdk_logger) return new JDKLogImpl(clazz); if(IS_LOG4J2_AVAILABLE) return new Log4J2LogImpl(clazz); if (IS_SLF4J_AVAILABLE) return new Slf4jLogImpl(clazz); return new JDKLogImpl(clazz); }
public static Log getLog(String category) { if(custom_log_factory != null) return custom_log_factory.getLog(category); if(ctor_str != null) { try { ctor_str.newInstance(category); } catch(Throwable t) { throw new RuntimeException(t); } } if(use_jdk_logger) return new JDKLogImpl(category); if(IS_LOG4J2_AVAILABLE) return new Log4J2LogImpl(category); if (IS_SLF4J_AVAILABLE) return new Slf4jLogImpl(category); return new JDKLogImpl(category); }