Articles → UIPATH → Add Log Fields and Remove Log Fields activities in UiPath

Add Log Fields and Remove Log Fields activities in UiPath






Purpose


  1. Add Log Fields - This activity adds a custom field while writing the log using the log message activity.
  2. Remove Log Fields - This activity removes the custom fields while writing the log using the log message activity.

Example


  1. Drag and drop the "Log Message" activity and write the "Log Before Add log fields" message.
  2. Drag and drop "Add Log Fields" activity and add a custom field "Year".


  3. Picture showing the properties window of Add Log Fields

    Click to Enlarge

  4. Drag and drop the "Log Message" activity and write the "Log After Add log fields" message.
  5. Drag and drop "Remove Log Fields" activity and remove the custom field "Year".


  6. Picture showing the properties window of Remove Log Fields

    Click to Enlarge

  7. Drag and drop the "Log Message" activity and write the "Log After Remove Log Fields" message.


  8. Picture showing the complete sequential flow of Add Log Fields and Remove Log Fields activities

    Click to Enlarge

  9. Save and run the bot.



Output


Picture showing the output of the Add Log Fields and Remove Log Fields activities

Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, February 16, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250