Groovy: Redirect log.info output from console to the file
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023
02:21 AM
02-02-2023
02:21 AM
Groovy: Redirect log.info output from console to the file
With Groovy I can create directory and file so following lines works fine:
def file = new File("C:/Log") // create directory Log
file.mkdir()
def newFile = new File("C:/Log/log.txt") // create log.txt
newFile.createNewFile()
Now during test execution I want to have all log.info from console window to this file. Already tried few things but file is empty.
Any tips?
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023
01:18 AM
02-07-2023
01:18 AM
I think you need to change the configuration in the soapui-log4j.xml
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2023
07:12 AM
02-07-2023
07:12 AM
Yep, that's what I thought and it requires Admin rights
