Skip to content

chore(logging): enable gzipped log rotation and adjust test logging - #7648

Open
Ludy87 wants to merge 1 commit into
mainfrom
enable_gz
Open

chore(logging): enable gzipped log rotation and adjust test logging#7648
Ludy87 wants to merge 1 commit into
mainfrom
enable_gz

Conversation

@Ludy87

@Ludy87 Ludy87 commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Description of Changes

This PR improves log retention and disk usage management by compressing rotated log files and applying explicit retention limits.

  • Updated the Logback rolling policies for authentication and application logs:
    • Rotated auth logs are now stored as .log.gz files.
    • Rotated info logs are now stored as .log.gz files.
    • Increased retention from 1 day to 7 days for both log types.
    • Added a 64MB total size cap for authentication log archives.
    • Added a 256MB total size cap for application log archives.
  • Added *.log.gz to app/core/.gitignore so compressed log archives are not accidentally committed.
  • Updated Gradle test logging:
    • Removed started test events from the output.
    • Added skipped test events.
    • Failed tests continue to be reported with exception, cause, and stack trace information.

The change was made to retain useful historical logs for longer while reducing their storage footprint and preventing archived logs from growing without bounds. The Gradle logging adjustment also reduces unnecessary test output while making skipped tests visible.


Checklist

General

Documentation

Translations (if applicable)

UI Changes (if applicable)

  • Screenshots or videos demonstrating the UI changes are attached (e.g., as comments or direct attachments in the PR)

Testing (if applicable)

  • I have run task check to verify linters, typechecks, and tests pass
  • I have tested my changes locally. Refer to the Testing Guide for more details.

Add compressed logs to .gitignore and switch logback rolling policies to produce .log.gz files with longer retention and caps (auth: maxHistory=7, totalSizeCap=64MB; info: maxHistory=7, totalSizeCap=256MB). Also update Gradle testLogging events from "started","failed" to "skipped","failed". Changes: app/core/.gitignore, app/core/src/main/resources/logback.xml, build.gradle. Purpose: keep compressed historical logs, limit disk usage, and adjust test output verbosity.
@Ludy87
Ludy87 requested review from a team and balazs-szucs as code owners August 23, 2026 00:54
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines ignoring generated files. label Aug 23, 2026
@github-actions github-actions Bot added chore Routine tasks or maintenance that don't modify src or test files Gradle Pull requests that update Gradle code labels Aug 23, 2026
@stirlingbot

stirlingbot Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

✅ Backend License Check Passed

All backend dependencies have valid and allowed licenses.

The backend license report has been updated successfully.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 V2 Auto-Deployment Complete!

🔗 Direct Test URL (non-SSL) http://54.175.155.236:7648

🧩 Admin portal included - try it at http://54.175.155.236:7648/portal.

This deployment will be automatically cleaned up when the PR is closed.

🔄 Auto-deployed for approved V2 contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Routine tasks or maintenance that don't modify src or test files Gradle Pull requests that update Gradle code size:S This PR changes 10-29 lines ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants