本文整理汇总了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());
}
}
示例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());
}
}
示例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"));
}
示例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());
}
}