protected Log logTxt()
{
    #resAppl
    #Define.UserTab('\t')
    Integer                 fromIdx  = transLogPoint + 1;
    Integer                 toIdx    = infoLog.num();
SysInfoLogEnumerator   enum = SysInfologEnumerator::newData(infoLog.copy(fromIdx, toIdx));
    Log                     logTxt;
    DictEnum                dictEnum = new DictEnum(enumNum(Exception));
    ;
    while (enum.moveNext())
    {
               logTxt += strFmt("%1 \t %2\r\n",
                         dictEnum.index2Name(enum.currentException()),
                         strRem(enum.currentMessage(), #UserTab));
    }
    transLogPoint = toIdx;
    return logTxt;
}
  Variable transLogPoint keep the value of  the last message index before start batch task.
Комментариев нет:
Отправить комментарий