当前位置: 首页>>代码示例>>Java>>正文


Java LogWriter.isDebug方法代码示例

本文整理汇总了Java中org.pentaho.di.core.logging.LogWriter.isDebug方法的典型用法代码示例。如果您正苦于以下问题:Java LogWriter.isDebug方法的具体用法?Java LogWriter.isDebug怎么用?Java LogWriter.isDebug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.core.logging.LogWriter的用法示例。


在下文中一共展示了LogWriter.isDebug方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addFileToResultFilenames

import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
private void addFileToResultFilenames(String fileaddentry,LogWriter log,Result result,Job parentJob)
	{	
		try
		{
			ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject(fileaddentry), parentJob.getJobname(), toString());
			result.getResultFiles().put(resultFile.getFile().toString(), resultFile);
	    
			if(log.isDebug())
			{
				log.logDebug(toString()," ------ ");
				log.logDebug(toString(),Messages.getString("JobMoveFiles.Log.FileAddedToResultFilesName",fileaddentry));
			}
			
		}catch (Exception e)
		{
			log.logError(Messages.getString("JobMoveFiles.Error.AddingToFilenameResult"),fileaddentry + ""+e.getMessage());
		}

}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:20,代码来源:JobEntryMoveFiles.java

示例2: addFileToResultFilenames

import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
private void addFileToResultFilenames(String fileaddentry,LogWriter log,Result result,Job parentJob)
{	
	try{
		ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject(fileaddentry), parentJob.getJobname(), toString());
		result.getResultFiles().put(resultFile.getFile().toString(), resultFile);
    
		if(log.isDebug()){
			log.logDebug(toString()," ------ ");
			log.logDebug(toString(),Messages.getString("JobEntryMSAccessBulkLoad.Log.FileAddedToResultFilesName",fileaddentry));
		}
	}catch (Exception e){
		log.logError(Messages.getString("JobEntryMSAccessBulkLoad.Error.AddingToFilenameResult"),fileaddentry + ""+e.getMessage());
	}
  }
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:15,代码来源:JobEntryMSAccessBulkLoad.java

示例3: connectRep

import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
private void connectRep(LogWriter log,String realrepName, String realusername, String realpassword) throws Exception
{
	this.repsinfo = new RepositoriesMeta(log);
	if (!this.repsinfo.readData())
	{
		log.logError(toString(),Messages.getString("JobExportRepository.Error.NoRep"));
		throw new Exception(Messages.getString("JobExportRepository.Error.NoRep"));
	}
	this.repinfo = this.repsinfo.findRepository(realrepName);
	if (this.repinfo==null)
	{
		log.logError(toString(),Messages.getString("JobExportRepository.Error.NoRepSystem"));
		throw new Exception(Messages.getString("JobExportRepository.Error.NoRepSystem"));
	}
	
	this.repo = new Repository(log, this.repinfo, this.userinfo);
	
	if (!this.repo.connect("Export job entry"))
	{
		log.logError(toString(),Messages.getString("JobExportRepository.Error.CanNotConnectRep"));
		throw new Exception(Messages.getString("JobExportRepository.Error.CanNotConnectRep"));
	}
	
	// Check username, password
	// Just for Job entry security
	// We don't need it at all to export
	if(log.isDebug()) log.logDebug(toString(), Messages.getString("JobExportRepository.Log.CheckSuppliedUserPass"));
	this.userinfo = new UserInfo(this.repo, realusername, realpassword);
	if(log.isDebug()) log.logDebug(toString(), Messages.getString("JobExportRepository.Log.CheckingUser",userinfo.getName()));
	
	if (this.userinfo.getID()<=0)
	{
		log.logError(toString(),Messages.getString("JobExportRepository.Error.CanNotVerifyUserPass"));
		throw new Exception(Messages.getString("JobExportRepository.Error.CanNotVerifyUserPass"));
	}
	if(log.isDebug()) log.logDebug(toString(), Messages.getString("JobExportRepository.Log.SuppliedUserPassVerified"));
	
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:39,代码来源:JobEntryExportRepository.java

示例4: addFileToResultFilenames

import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
private void addFileToResultFilenames(String fileaddentry,LogWriter log,Result result,Job parentJob)
{	
	try
	{
		ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, KettleVFS.getFileObject(fileaddentry), parentJob.getJobname(), toString());
		result.getResultFiles().put(resultFile.getFile().toString(), resultFile);
		if(log.isDebug()) log.logDebug(toString(),Messages.getString("JobExportRepository.Log.FileAddedToResultFilesName",fileaddentry));
	}catch (Exception e)
	{
		log.logError(Messages.getString("JobExportRepository.Error.AddingToFilenameResult"),fileaddentry + ""+e.getMessage());
	}
  }
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:13,代码来源:JobEntryExportRepository.java


注:本文中的org.pentaho.di.core.logging.LogWriter.isDebug方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。