Package org.eweb4j.config.bean

Examples of org.eweb4j.config.bean.LogsConfigBean


public class LogFactory {
  public static Log getIOCLogger(Class<?> clazz) {
    ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigConstant.CONFIGBEAN_ID);

    LogsConfigBean logs = cb == null ? new LogsConfigBean() : cb.getIoc().getLogs();

    return new LogImpl(logs, "IOC", clazz);
  }
View Full Code Here


  }

  public static Log getMVCLogger(Class<?> clazz) {
    ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigConstant.CONFIGBEAN_ID);

    LogsConfigBean logs = cb == null ? new LogsConfigBean() : cb.getMvc().getLogs();

    return new LogImpl(logs, "MVC", clazz);
  }
View Full Code Here

  }

  public static Log getORMLogger(Class<?> clazz) {
    ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigConstant.CONFIGBEAN_ID);

    LogsConfigBean logs = cb == null ? new LogsConfigBean() : cb.getOrm().getLogs();

    return new LogImpl(logs, "ORM", clazz);
  }
View Full Code Here

    LogConfigBean log = new LogConfigBean();
    log.setLevel("debug");
    log.setFile(null);
    log.setSize("0");
    LogsConfigBean logs = new LogsConfigBean();
    logs.getLog().add(log);
    if (cb == null)
      return new LogImpl(logs, "CONFIG", clazz);

    String debug = cb.getDebug();
    if ("true".equals(debug) || "1".equals(debug)) {
View Full Code Here

TOP

Related Classes of org.eweb4j.config.bean.LogsConfigBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.