How to write from logs from NASL into a file?

is there a way i can write output to a file like display shows it on console.

Hi,
do you mean like in /your/installation/path/var/log/gvm/openvassd.log ?
Or maybe appending " 2>&1 | tee ~/test.txt " will do the job for you