How can I create a file with a custom log? To save, for example, the information of the fields or the duration of a process. That is, I want to create my own log in a txt file
3 Likes
I am interested in this topic as well. Can anyone help with it?
Use Java’s PrintWriter to create the file:
PrintWriter writer = new PrintWriter("yourlog.txt", "UTF-8")
Then print whatever information you want in the file, for example:
writer.println('Accessing URL: ' + currentUrl)
And close it when you’re done:
writer.close()
1 Like