a week ago
Hi All,
I have a requirement to write Blue Prism process logs to a notepad file while running the bot.
Is there a way to achieve this?
I know about exporting logs from the control room, but that’s not what I’m looking for.
Thanks,
Dipin Dev P
a week ago
Hi Dipin,
One way to achieve this is by creating a Notepad file at the start of the process. For every action/activity carried out in the process, you can use the File Management VBO and the "Append to Text File" action to add the current log to the file.
The log entry for each action can include the timestamp and a descriptive comment detailing the specific activity. This way, you can dynamically build a comprehensive log in the Notepad file as the process executes.
a week ago
Are you talking about session logs? You mentioned you're not looking for exporting logs from Control Room, but I can't tell if you're saying that because you want an automated way to export those same logs or if you don't want those specific logs.
If you do want those same logs (session logs), then you could consider using Data Gateways. I believe it even has an option to output to text files.
Here's the documentation on it for 7.3: https://docs.blueprism.com/en-US/bundle/blue-prism-enterprise-7-3/page/Guides/data-gateways/dg-introduction.htm
Thursday
Hi @DipinDevP - if you just want to integrate as part of the process. You might need to add or call Append text multiple times as described in the below BP tip.
As David mentioned Data gateway, if that is an option I would use datagateway rather adding code in the process, but if you prefer adding it in to the process then this is another option.
https://community.blueprism.com/t5/Product-Forum/BPTechTips-Records-all-the-Logs-if-error-only-enabled/m-p/61097#M14448
Friday
I agree with the responses from the team above. I just want to understand why you're entering each log separately into a Notepad file. I'm trying to get the reasoning behind this approach.
Tuesday
@Tejaskumar_Darji I received a requirement in this way, even though I explained about Blue Prisms' inbuilt logging mechanism, they are preferring logs in a Notepad file in a specified location with only high level steps and errors.
Tuesday
Ok understood. Then I guess the only option left is to add a write-to-text file action and add it after each step.