I have deployed my Go application on Openshift using the Go 1.5.2 cartridge. As a good practice, I have made it a habit to generate logs about anything that goes down with the application. But this habit is proving to be costly in the Openshift environment because of the limited storage (1 GB) provided to me. The logs are easily exceeding the 10 MB mark within a few second of usage, and I fear my application will run out of space if I leave the log file unadministered. Currently, I am clearing the log file manually after regular intervals.
Is there any way I could stop the appending of logs onto the file, or maybe stop the generation of logs altogether (without affecting my original application code)? I have tried by revoking write privileges from the file, but the logs keep appearing anyways.