Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • X xlte
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • xlte
  • Merge requests
  • !5

amari.xlog: Implement log rotation

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Kirill Smelkov requested to merge y/logrotate into master Apr 13, 2023
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Rotate output enb.xlog ourselves at sync points so that nothing is lost in the output (hello logrotate copytruncate) and so that we can emit pre- and post- logrotate syncs.

Reuse logging's RotatingFileHandler and TimedRotatingFileHandler to implement actual rotation, but carefully wrap them in our writer classes so that we emit exactly the output we prepared explicitly without any headers prepended by logging, and that we explicitly control when rotation happens.

/cc @lu.xu, @xavier_thompson

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: y/logrotate
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7