STD.System.Log.getLocalId ()
The getLocalId gets the Local Id associated with the current query or workunit. Example:
IMPORT STD; STD.System.Log.getLocalId();