Examples of LogResource


Examples of com.opengamma.web.analytics.rest.LogResource

    } else {
      throw new OpenGammaRuntimeException("Neither " + marketDataSpecificationRepository().name() + " nor " + liveMarketDataProviderFactory().name() + " were specified");
    }
    repo.getRestComponents().publishResource(new WebUiResource(analyticsViewManager, connectionMgr));
    repo.getRestComponents().publishResource(new Compressor());
    repo.getRestComponents().publishResource(new LogResource());
    repo.getRestComponents().publishResource(new UserResource());
    repo.getRestComponents().publishResource(new BlotterResource(getSecurityMaster(), getPortfolioMaster(), getPositionMaster()));
    repo.getRestComponents().publishResource(new TimeSeriesResolverKeysResource(getConfigMaster()));
    repo.getRestComponents().publishHelper(new PrimitivesGridStructureMessageBodyWriter(columnWriter));
    repo.getRestComponents().publishHelper(new PortfolioGridStructureMessageBodyWriter(columnWriter));
View Full Code Here

Examples of railo.commons.io.log.LogResource

        // File
        strLogger=translateOldPath(strLogger);
        Resource file=ConfigWebUtil.getFile(config, config.getConfigDir(),strLogger, ResourceUtil.TYPE_FILE);
        if(file!=null && ResourceUtil.canRW(file)) {
            try {
        return new LogAndSourceImpl(new LogResource(file,logLevel,config.getResourceCharset()),strLogger);
      } catch (IOException e) {
        SystemOut.printDate(config.getErrWriter(),e.getMessage());
      }
        }
       
View Full Code Here

Examples of railo.commons.io.log.LogResource

        if(charset==null) charset=pageContext.getConfig().getResourceCharset();
        Resource logDir=config.getConfigDir().getRealResource("logs");
          if(!logDir.exists())logDir.mkdirs();
          try {
            Resource f = logDir.getRealResource(file);
                logger=new LogResource(f,railo.commons.io.log.Log.LEVEL_INFO,charset);
            } catch (IOException e) {
                throw Caster.toPageException(e);
            }
      }
     
View Full Code Here

Examples of railo.commons.io.log.LogResource

    qry.setAtEL("level", row, LogUtil.toStringType(log.getLogLevel(), ""));
    qry.setAtEL("virtualpath", row, log.getSource());
    qry.setAtEL("class", row, log.getLog().getClass().getName());
        Log l = log.getLog();
        if(l instanceof LogResource){
          LogResource lr = (LogResource)l;
          qry.setAtEL("maxFile", row, Caster.toString(lr.getMaxFiles()));
          qry.setAtEL("maxFileSize", row, Caster.toString(lr.getMaxFileSize()));
          qry.setAtEL("path", row, lr.getResource().getAbsolutePath());
        }
       
       
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.