ログフィールドを追加アクティビティ

上記アクティビティの使用方法を教えていただきたいです。

ネットにあまり、活用例がなく、、、

以上よろしくお願いします

Hi @natsumikan

It is Used to add custom logs

Hope it helps!!

https://docs.uipath.com/activities/other/latest/workflow/add-log-fields

We can use custom log fields for marking logs with additional information
We can use these marks e.g. later for subsequent monitoring / reports e.g. for splitting many logs into categories, rpa operation cost controlling etc

@natsumikan
「Add Log Fields Activity」を使用してカスタムログを作成するためには、以下の手順に従うことができます。

  1. カスタムログに含めたい情報を特定します。ログで追跡したい関連データやコンテキストを選びます。
  2. アプリケーションやシステムで使用しているログフレームワークまたはライブラリを特定します。異なるフレームワークには、ログフィールドを追加するための独自の構文やメソッドが存在する場合があります。
  3. 「Add Log Fields Activity」を使用してカスタムログフィールドをログエントリに追加します。具体的な実装方法は使用しているログフレームワークに依存しますが、一般的には、フレームワークが提供する適切なメソッドや関数を呼び出して目的のログフィールドを追加する必要があります。
  4. 「Add Log Fields Activity」に必要なパラメータを渡して、カスタムログフィールドを指定します。これらのパラメータには、フィールド名とそれに対応する値が含まれます。たとえば、「ユーザー名」や「タイムスタンプ」など、ログに含めたい他の関連情報をフィールドとして追加することができます。
  5. 「Add Log Fields Activity」をログのワークフローに組み込みます。通常は、カスタムログフィールドをログエントリに追加したいコードの適切な場所にこのアクティビティを配置することになります。

「Add Log Fields Activity」を使用して必要なパラメータを提供することで、標準のログエントリを拡張し、追加のカスタムログフィールドを含めることができます。これらのフィールドは、ログを後で分析する際に貴重な情報やコンテキストを提供することができます。

@natsumikan

Whenever you use a log message UiPath internally will add few extra details to the logged message json…this add log fields activity will help you to add few more fields that you might need for reporting or using in UiPath insights to show bot level reports…so when you use a add log field …the fields that you mention will be added to any log mesaage you do subsequent to that activity…and the value of the corresponding field is logged to the log messge and when checked on orchestrator we can retrieve those values and use for further analysis

Hope this helps

Cheers

Hi @natsumikan

This activity allows you to add custom fields to the logs generated during the execution of your automation process.

Check out this blog

Regards
Gokul

Hi @natsumikan

Add Log fields activity is used to add custom Log fields to Robot execution logs. The log fields created using this activity can be used under the entire workflow until Remove Log Fields activity is added.
image

For further information and usage of above this activity refer the following link:
https://docs.uipath.com/activities/other/latest/workflow/add-log-fields

Hope it helps!!
Regards,

やあ @natsumikan

[ログ フィールドの追加] アクティビティは、カスタム ログ フィールドをロボット実行ログに追加するために使用されます。このアクティビティによって作成された新しいログ フィールドは、ログ フィールドの削除アクティビティが使用されない限り、ワークフロー全体を通じてログ メッセージが実行されるたびに追加されます。

image

フィールド - 後続のすべてのログ行に追加される文字列引数のコレクション。

それが役に立てば幸い!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.