Append Log

How to write Activity name in text file as a log when got exception?

1.create directory for Log file.
2.Then use “write text file” activity to write your 1st line of your log… then use “Append line activity” at each stage to write your logs.

Actually, the Append line activity will already take care of creating the file if it does not exist :slight_smile:
image

1 Like

i want to track line number or for which activity getting exception.

you can use state machine … this is good in capturing error in each stage. you can use your code inside the try catch. and in the catch ,give “exception.message” to get your error message.

If you can elaborate what problem you are facing right now ?