Extend rubocop Rails.logger to prevent usage of AppLogger

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

On gitlab-foss#54102 (closed) we added a rubocop for Rails.logger, we should extend this one to also prevent the usage of AppLogger.

From !17779 (comment 222741696)

We could easily replace it with a AppJsonLogger or something of the sort that inherits from JsonLogger: https://docs.gitlab.com/ee/development/logging.html

Edited Sep 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading