I have a Basic program that is used to send email via a web service. I want to leverage the protocolLogging()
function to catch any issues that sometimes arise when interacting with a web service. However, I don't want to be flooded with all the success logs (right now I'm generating one log file every time the program executes). With the log level set to 3 (or 1 for that matter), an empty file is still generated after a successful run.
Is there a way to prevent the empty log files from being generated in the first place?
If not, is there a better way to clean them up than opening the log directory in the program and deleting the record that was just created (assuming everything else ran successfully)? My log directory is not currently a UniVerse type-19 file or anything.
Is it better to reuse one log file throughout the day? If I change the code to do this, are there any performance implications? This program is a subroutine that gets used heavily at times.
I'm running UniVerse v11.2.3 on Windows Server 2008 R2.