Append Log

studio

#1

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


#2

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.


#3

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


#4

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


#5

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 ?