本文整理汇总了Java中org.pentaho.di.core.logging.LogWriter.logDebug方法的典型用法代码示例。如果您正苦于以下问题:Java LogWriter.logDebug方法的具体用法?Java LogWriter.logDebug怎么用?Java LogWriter.logDebug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.core.logging.LogWriter
的用法示例。
在下文中一共展示了LogWriter.logDebug方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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());
}
}
示例5: setLog
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
private void setLog(LogWriter log, int loglevel, StringBuffer msg)
{
switch (loglevel) {
case LogWriter.LOG_LEVEL_ERROR:
// Output message to log
// Log level = ERREUR
log.logError(toString(), msg.toString());
break;
case LogWriter.LOG_LEVEL_MINIMAL:
// Output message to log
// Log level = MINIMAL
log.logMinimal(toString(), msg.toString());
break;
case LogWriter.LOG_LEVEL_BASIC:
// Output message to log
// Log level = BASIC
log.logBasic(toString(), msg.toString());
break;
case LogWriter.LOG_LEVEL_DETAILED:
// Output message to log
// Log level = DETAILED
log.logDetailed(toString(), msg.toString());
break;
case LogWriter.LOG_LEVEL_DEBUG:
// Output message to log
// Log level = DEBUG
log.logDebug(toString(), msg.toString());
break;
case LogWriter.LOG_LEVEL_ROWLEVEL:
// Output message to log
// Log level = ROW LEVEL
log.logRowlevel(toString(), msg.toString());
break;
default:
// Output message to log
// Log level = BASIC
log.logBasic(toString(), msg.toString());
break;
}
}
示例6: saveRep
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
public void saveRep(Repository rep, long id_transformation)
throws KettleException
{
LogWriter log = LogWriter.getInstance();
try
{
log.logDebug(toString(), Messages.getString("StepMeta.Log.SaveNewStep")); //$NON-NLS-1$
// Insert new Step in repository
setID(rep.insertStep( id_transformation,
getName(),
getDescription(),
getStepID(),
distributes,
copies,
getLocation()==null?-1:getLocation().x,
getLocation()==null?-1:getLocation().y,
isDrawn()
)
);
// Save partitioning selection for the step
stepPartitioningMeta.saveRep(rep, id_transformation, getID());
// The id_step is known, as well as the id_transformation
// This means we can now save the attributes of the step...
log.logDebug(toString(), Messages.getString("StepMeta.Log.SaveStepDetails")); //$NON-NLS-1$
stepMetaInterface.saveRep(rep, id_transformation, getID());
// Save the clustering schema that was chosen.
rep.saveStepAttribute(id_transformation, getID(), "cluster_schema", clusterSchema==null?"":clusterSchema.getName());
}
catch(KettleException e)
{
throw new KettleException(Messages.getString("StepMeta.Exception.UnableToSaveStepInfo",String.valueOf(id_transformation)), e); //$NON-NLS-1$
}
}
示例7: evaluate
import org.pentaho.di.core.logging.LogWriter; //导入方法依赖的package包/类
/**
* Output message to job log.
*/
public boolean evaluate(Result result)
{
LogWriter log = LogWriter.getInstance();
try
{
loglevel=loglevel+1;
if (loglevel==LogWriter.LOG_LEVEL_ERROR)
{
// Output message to log
// Log level = ERREUR
log.logError(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
else if (loglevel==LogWriter.LOG_LEVEL_MINIMAL)
{
// Output message to log
// Log level = MINIMAL
log.logMinimal(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
else if (loglevel==LogWriter.LOG_LEVEL_BASIC)
{
// Output message to log
// Log level = BASIC
log.logBasic(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
else if (loglevel==LogWriter.LOG_LEVEL_DETAILED)
{
// Output message to log
// Log level = DETAILED
log.logDetailed(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
else if (loglevel==LogWriter.LOG_LEVEL_DEBUG)
{
// Output message to log
// Log level = DEBUG
log.logDebug(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
else if (loglevel==LogWriter.LOG_LEVEL_ROWLEVEL)
{
// Output message to log
// Log level = ROWLEVEL
log.logRowlevel(Const.CR + getRealLogSubject()+ Const.CR, getRealLogMessage()+ Const.CR);
}
return true;
}
catch(Exception e)
{
result.setNrErrors(1);
log.logError(Messages.getString("WriteToLog.Error.Label"), Messages.getString("WriteToLog.Error.Description") + " : "+e.toString());
return false;
}
}