Kettle javascript中writeToLog方法的使用

// Writes a string to the defined Kettle Log.
//
// Usage:
// writeToLog(var);
// 1: String - The Message which should be written to
// the Kettle Debug Log
//
// writeToLog(var,var);
// 1: String - The Type of the Log
// d - Debug
// l - Detailed
// e - Error
// m - Minimal
// r - RowLevel
//
// 2: String - The Message which should be written to
// the Kettle Log
//
// 2006-11-21
//
writeToLog
("Hello World!");

writeToLog("r", "Hello World!");
由于不会用kettle的调试功能,所有这个writeToLog方法对我来说显得比较重要。囧...
这个方法有点怪异,在执行时,日志的显示级别要与这个函数的级别相同才能显示出来,而不是和log4j一样的把更高级的显示出来。
这样一来,不带级别的那个writeToLog(var)好像就没用了
原文地址:https://www.cnblogs.com/laiyubin/p/1714740.html