Sensei Logo Sensei Hub

Recipe - SLF4J Logging: Naming convention: Reserved logger name

Description:
The name "logger" should be reserved for the SLF4J logger instance. Use Refactor Rename (Shift+F6) to rename this variable.
Level:
marked_information
Language:
  • java
Tags:
  • SLF4J
  • framework specific
  • logging
  • quality
Recipe
id: scw:logging:slf4j:reserved-name
version: 10
metadata:
  name: 'SLF4J Logging: Naming convention: Reserved logger name'
  shortDescription: The name "logger" should be reserved for the SLF4J logger instance. Use Refactor Rename (Shift+F6) to rename this variable.
  level: marked_information
  language: java
  scwCategory: insufficient_logging:generic
  cweCategory: 778
  enabled: true
  tags: SLF4J;framework specific;logging;quality
search:
  field:
    name: logger
    type:
      not: org.slf4j.Logger
      checkInheritance: true
availableFixes:
- name: The name "logger" should be reserved for the SLF4J logger instance. Use Refactor Rename (Shift+F6) to rename this variable.
  actions: []