Link to home
Start Free TrialLog in
Avatar of LarryAndro
LarryAndro

asked on

Beanshell Log File

I want to trace execution in a beanshell script, writing text and variables to a text file.  

 - How do I create a text file, in beanshell?  
 - How do I append text to a text file, in a beanshell script?
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LarryAndro
LarryAndro

ASKER

I'm making things too hard!  Thanks...

(If anyone reads, and copies and pastes the code above, change FIleWriter... to FileWriter...)
:-)

Using a logging API such as log4j would be better, but i'm not fully sure if it can be used in exactly the same way in beanshell