I'm writing some code(redwoodScript/Java) in our sapcps V8 Environment.
I'm creating code to be used on a library or/and a trigger.
for debugging purposes I would like to create a file on the application server FS and log the debug information there.
fdebug = new PrintWriter(new BufferedWriter(new FileWriter("/var/tmp/sapcpsdebug/trigger.log", true)));
I can get a logfile created. however every time the trigger executes it deletes the file and starts again.
I would like to know what is the better way to do this kind of thing.
Requirements is to have a separated file for this.
I think we should be able to use the logging classes to add a new log the the application server in order to perform a better usage of resources, but I'm a bit lost here.
any idea on how to do this, or were to look for more information?.