增加你自己的日志信息

在Java中增加你自己的日志信息,请使用OFBiz Debug类(org.ofbiz.base.util.Debug)中的调试方法,如 logInfo,logWarning, logError…

示例: Debug.logInfo("Now processing invoice " + invoiceId, module);

在beanshell 中增加日志信息,同样使用Debug方法,但在内容中忽略如""这样内容。

在 freemarker中增加日志信息,只需要显示你打算跟踪的变量,如:

${invoice} < #-- 将显示 invoice 的一般属性值 – >

${invoice.invoiceId} < #-- 将显示 invoice.invoiceId 属性值 – >

在minilang中增加日志信息,使用指令并输入你的值,比如在freemarker中:

${invoice} < #-- will display the entire GenericValue invoice – >

${invoice.invoiceId} < #-- will display the invoiceId field of invoice – >

通常level节点属性用于设置日志级别,如:“info”, “warning”, “error”,对应于Debug中的同名方法。

REF
http://www.javaeye.com/topic/588902