0 votes
by (150 points)

In my config.yaml I have the following on the logging section:

logging:
  global:
    location: C:\RebexProxy\x64\Logs\
    minLevel: Information
  access:
    location: C:\RebexProxy\x64\Logs\
    minLevel: Information

Is there a way to set a maximum amount of size that the log folder can have or a way to clean old logs and define what age a log is considered 'old'?

Thank you.

Best regards,

Nuno

1 Answer

0 votes
by (76.3k points)
selected by
 
Best answer

Unfortunately, this is not configurable.

Current settings are:

  • Max file size = 1GB.
  • File retention = 31 files.

However, we consider to make it configurable in one of future versions.

by (150 points)
Thank you very much for the hasty reply and the info.
I will go with a workaround.

Have a good day.
ago by (220 points)
new Rebex.FileLogWriter(logPath, Rebex.LogLevel.Info);

I observed Rebex.FileLogWriter opens the log file in overwrite mode, not append mode. Is it true? Can we do it in append mode or we have to make it custom?
ago by (76.3k points)
It seems that you are asking a question in a wrong thread. The original question is related to Rebex TLS Proxy, which is a standalone application.
I have created a separate question for your comment. Please see my answer there: https://forum.rebex.net/23496/opening-the-log-file-in-append-mode
...