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

Re-open the log file by filesystem notify #43359

Merged
merged 17 commits into from
Jul 18, 2024
Merged

Re-open the log file by filesystem notify #43359

merged 17 commits into from
Jul 18, 2024

Commits on Jun 21, 2024

  1. Re-open the log file on OS Signal trigger

    This PR implements an handler for the CONT signal.
    The handler will close and re-open the log file.
    If the log destination is not a file, this is a no-op.
    
    Useful for logrotate postrotate hook.
    marcoandredinis committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    bdfa269 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    6a5c99f View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Configuration menu
    Copy the full SHA
    29c994c View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. code review changes:

    - refactored to launch watcher with process context
    - make file shared writer as singleton
    - add test for logrotate case
    vapopov committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    f34ae03 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    926f68a View commit details
    Browse the repository at this point in the history
  2. - configuration for log section update

    - test simplification
    vapopov committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    f14d2b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    81f0296 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. code review changes:

    - add closing for file shared writer
    - make runWatcherFunc not exported
    vapopov committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    49ab434 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. linter fixes

    vapopov committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    686a8dd View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. change default file mode for log file

    simplify setting global watcher
    vapopov committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    550d75a View commit details
    Browse the repository at this point in the history
  2. terminate watcher after override global one

    added test for validating global override
    vapopov committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    991c70a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c762fb View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    d1ed93c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    babf127 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    580c801 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a303a8b View commit details
    Browse the repository at this point in the history
  3. tune context passing

    vapopov committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    10042fa View commit details
    Browse the repository at this point in the history