Package railo.commons.io.log

Examples of railo.commons.io.log.LogAndSourceImpl


        if(logLevel==-1)logLevel=Log.LEVEL_ERROR;
      //boolean isCS=config instanceof ConfigServer;
        if(!StringUtil.isEmpty(strLogger) && hasAccess && !"console".equalsIgnoreCase(strLogger)) {
          return ConfigWebUtil.getLogAndSource(config,strLogger,logLevel);
        }
        return new LogAndSourceImpl(LogConsole.getInstance(config,logLevel),strLogger);
    }
View Full Code Here


          return ConfigWebUtil.getLogAndSource(config,strLogger,logLevel);
        }
        return new LogAndSourceImpl(LogConsole.getInstance(config,logLevel),strLogger);
    }
    private static LogAndSource getLogAndSource(Config config, String strLogger, int logLevel)  {
        if(strLogger==null) return new LogAndSourceImpl(LogConsole.getInstance(config,logLevel),"");
       
        // 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());
      }
        }
       
        if(file==null)SystemOut.printDate(config.getErrWriter(),"can't create logger from file ["+strLogger+"], invalid path");
        else SystemOut.printDate(config.getErrWriter(),"can't create logger from file ["+strLogger+"], no write access");
   
        return new LogAndSourceImpl(LogConsole.getInstance(config,logLevel),strLogger);
   
    }
View Full Code Here

        return spoolInterval;
    }

    @Override
    public LogAndSource getMailLogger() {
      if(mailLogger==null)mailLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return mailLogger;
    }
View Full Code Here

    return mailLogger;
    }
   

    public LogAndSource getRestLogger() {
      if(restLogger==null)restLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return restLogger;
    }
View Full Code Here

      if(restLogger==null)restLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return restLogger;
    }

    public LogAndSource getThreadLogger() {
      if(threadLogger==null)threadLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return threadLogger;
    }
View Full Code Here

      this.threadLogger=threadLogger;
    }
   
    @Override
    public LogAndSource getRequestTimeoutLogger() {
      if(requestTimeoutLogger==null)requestTimeoutLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return requestTimeoutLogger;
    }
View Full Code Here

      return scheduler.getLogger();
    }
   
    @Override
    public LogAndSource getApplicationLogger() {
      if(applicationLogger==null)applicationLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return applicationLogger;
    }
View Full Code Here

    return applicationLogger;
    }
   
    public LogAndSource getDeployLogger() {
      if(deployLogger==null){
        deployLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_INFO),"");
      }
    return deployLogger;
    }
View Full Code Here

      }
    return deployLogger;
    }
   
    public LogAndSource getScopeLogger() {
      if(scopeLogger==null)scopeLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
    return scopeLogger;
    }
View Full Code Here

    protected void setORMLogger(LogAndSource ormLogger) {
        this.ormLogger = ormLogger;
    }
    public LogAndSource getORMLogger() {
      if(ormLogger==null)ormLogger=new LogAndSourceImpl(LogConsole.getInstance(this,Log.LEVEL_ERROR),"");
   
        return ormLogger;
    }
View Full Code Here

TOP

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

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.