0

UiPath の NLog.config ファイルを変更しています。切り捨て値を 20000 に増やしたいのですが、次の構文を試しましたが、うまくいきません。

<variable name="truncated_message" value="${replace:replaceWith=...TRUNCATED:regex=true:inner=${message}:searchFor=^[\s\S]{20000}}"/>
<target type="File" name="WorkflowLogFiles" fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log" layout="${time} ${level} ${truncated_message}" keepFileOpen="true" openFileCacheTimeout="5" concurrentWrites="true" encoding="utf-8" writeBom="true" />

私も正規表現に従ってみましたが、うまくいきません

(^(?:\S+\s+\n?){0, 20000}) 
(?\=.\{20000\}).+

誰が私が間違っているのか、切り捨て値を20000に設定する方法を教えてもらえますか?

4

1 に答える 1