cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
DIVIDESbyZER0
Level III

Why does Clear Log(), also prevent anything after it from being printed in the log?

Why does Clear Log(), also prevent anything after it from being printed in the log?

We are trying to pull a log file for each execution of the script.  There is a clear log() at the top of a script, and a save log() at the end.  For some reason when the clear log() is run, this prevents anything from being saved into the log file.

1 REPLY 1
StarfruitBob
Level VI

Re: Why does Clear Log(), also prevent anything after it from being printed in the log?

With this script I was able to save a log. Have you defined a location to save the log as an argument to save log()?

 

names default to here(1);
clear log();

print( "test" );

save log( "$DESKTOP/log.txt" );
Learning every day!