Package anvil

Examples of anvil.LogDevice



 
  public Log createLog(String name)
  {
    LogDevice dev;
    if (_provider.equalsIgnoreCase("basic")) {
      dev = new anvil.server.basic.BasicLogDevice();
     
    } else if (_provider != null) {
      try {
        dev = (LogDevice)Class.forName(_provider).newInstance();
      } catch (ConfigurationError e) {
        e.fillInStackTrace();
        throw e;
      } catch (Throwable t) {
        throw new ConfigurationError("Couldn't create log device: "+_provider+", reason: "+t.toString());
      }

    } else {
      dev = new anvil.server.basic.BasicLogDevice();
    }
    dev.initialize(getParent());
    Log log = new Log(name, dev);
    log.setSeverity(_level);
    return log;
  }
View Full Code Here

TOP

Related Classes of anvil.LogDevice

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.