Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support log file size and number limits #879

Merged
merged 1 commit into from
Jul 2, 2020

Commits on Jul 2, 2020

  1. Support log file size and number limits

    klog does not enforce max log file size limit when the log file is not
    specifiec by the --log_file argument. This commit sets klog.MaxSize to
    the --log_file_max_size argument value when logging to file is enabled
    and --log_file is not provided.
    The commit also adds a new argument --log_file_max_num to define the
    max number (per severity level) of log files to be kept. The file number
    limit is enforced by Antrea code that periodically checks the log files
    and deletes the oldest files to keep at most the specified max number of
    log files.
    
    Fixes: antrea-io#788
    jianjuns committed Jul 2, 2020
    Configuration menu
    Copy the full SHA
    821e400 View commit details
    Browse the repository at this point in the history