Package org.eweb4j.config.bean

Examples of org.eweb4j.config.bean.LogConfigBean


  }

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

    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)) {
      return new LogImpl(logs, "CONFIG", clazz);
    } else {
      log.setConsole("0");
      return new LogImpl(logs, "CONFIG", clazz);
    }
  }
View Full Code Here

TOP

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

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.