Package railo.commons.io.log

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


        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

    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

Related Classes of railo.commons.io.log.LogResource

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.