You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2008/11/02 15:51:46 UTC

svn commit: r709886 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java

Author: adrianc
Date: Sun Nov  2 06:51:45 2008
New Revision: 709886

URL: http://svn.apache.org/viewvc?rev=709886&view=rev
Log:
Log simple method improvement - show source of log message.

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java?rev=709886&r1=709885&r2=709886&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/otherops/Log.java Sun Nov  2 06:51:45 2008
@@ -87,6 +87,16 @@
         }
         
         StringBuilder buf = new StringBuilder();
+        buf.append("[");
+        String methodLocation = this.simpleMethod.getFromLocation();
+        int pos = methodLocation.lastIndexOf("/");
+        if (pos != -1) {
+            methodLocation = methodLocation.substring(pos + 1);
+        }
+        buf.append(methodLocation);
+        buf.append("#");
+        buf.append(this.simpleMethod.getMethodName());
+        buf.append("] ");
         
         if (message != null) buf.append(message);