- このガイドについて
- スタート アップ ガイド
- インストールしています。
- アップグレード
- Connecting and licensing
- 構成する
- Running workloads
- RPA processes and tests
- Agents, functions, and API workflows
- 上限量
- Securing and governing
- 監視
- ログ レベル
- ログストレージ
- ロボット ログを管理する
- トラブルシューティング
- 参照
ログストレージ
ロボット ログのストレージ オプション: ローカル フォールバックを使用する Orchestrator に接続されたストレージ、および NLog.config ファイルを使用した NLog ベースのファイル設定。
Orchestrator のストレージ
ロボットが Orchestrator に接続されている場合、Assistant または Orchestrator で設定したレベルに一致するログのみが [ログ] ページに表示されます。Orchestrator が利用できない場合は、接続が復元するまで、ログはローカル パス (C:\Windows\System32\config\systemprofile\AppData\Local\UiPath\Logs\execution_log_data) の利用可能なディスク スペース内に保存されます。接続が復元されると、ログは生成された順番に分割して送信されます。
NLog ストレージ
The Robot update overwrites and resets these files, removing any prior edits.
Additionally, you can configure log storage by editing the NLog configuration files. Both files are in the Robot installation folder: %ProgramFiles%\UiPathPlatform\Robot\<version> for a per-machine installation, or %LocalAppData%\Programs\UiPathPlatform\Robot\<version> for a per-user installation.
NLog.configconfigures the execution logs. By default, the Robot stores execution logs in a file in the%LocalAppData%\UiPath\Logsfolder. The messages are collected by the WorkflowLogging logger and can be forwarded by using NLog targets.Robot.NLog.configconfigures the diagnostic logs, which the Robot writes toRobot.log.
The shipped NLog.config file looks as follows:
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoShutdown="true"
internalLogLevel="warn">
<variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />
<rules>
<logger name="WorkflowLogging" writeTo="asyncFile" final="true" />
</rules>
<targets>
<target type="AsyncWrapper"
name="asyncFile"
queueLimit="1000"
batchSize="100"
timeToSleepBetweenBatches="0"
overflowAction="Block">
<target type="File"
name="WorkflowLogFiles"
fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log"
layout="${time} ${level} ${message}"
keepFileOpen="true"
maxArchiveFiles="30"
openFileCacheTimeout="5"
concurrentWrites="true"
forceMutexConcurrentWrites="true"
encoding="utf-8"
writeBom="true" />
</target>
</targets>
</nlog>
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoShutdown="true"
internalLogLevel="warn">
<variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />
<rules>
<logger name="WorkflowLogging" writeTo="asyncFile" final="true" />
</rules>
<targets>
<target type="AsyncWrapper"
name="asyncFile"
queueLimit="1000"
batchSize="100"
timeToSleepBetweenBatches="0"
overflowAction="Block">
<target type="File"
name="WorkflowLogFiles"
fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log"
layout="${time} ${level} ${message}"
keepFileOpen="true"
maxArchiveFiles="30"
openFileCacheTimeout="5"
concurrentWrites="true"
forceMutexConcurrentWrites="true"
encoding="utf-8"
writeBom="true" />
</target>
</targets>
</nlog>
Robot のモード別のログの保存
ロボット ログは、オートメーションを実行するユーザーがローカル ユーザー (ユーザー モードの Robot の場合) であるか、ローカル システム ユーザー (サービス モードの Robot の場合) であるかに応じて異なる方法で保存されます。
.log形式の実行ログ
- サービス モード:
- Windows OS—
C:\Users\user\AppData\Local\UiPath\Logs
- Windows OS—
- ユーザー モード:
- Windows OS—
%LocalAppData%\UiPath\Logs - Linux—
~/.local/share/UiPath/Logs
- Windows OS—
LiteDB 形式の実行ログ
- サービス モード:
- Windows OS—
C:\Windows\System32\config\systemprofile\AppData\Local\UiPath\Logs\execution_log_data
- Windows OS—
- ユーザー モード:
- Windows OS—
%LocalAppData%\UiPath\Logs\execution_log_data - Linux—
~/.local/share/UiPath/Logs/execution_log_data
- Windows OS—
診断 (または内部) ログ
- サービス モード:
- Windows OS—
%ProgramData%\UiPath\Logs\internal
- Windows OS—
- ユーザー モード:
- Windows OS—
%LocalAppData%\UiPath\Logs\internal - Linux—
~/.local/share/UiPath/Logs/internal
- Windows OS—