---
title: “System.debug” First Parameter Has To Be Logging Level
description: "**Impact area** Manageability **Severity** Medium **Affected element** Apex Class ## Rule ID **SF-SYS-DEBUG** Impact \"System debug\" has to set Logging level as first parameter. Having the Logging level specified provides a cleaner log and improves readability of it. Remediation Add…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/system-debug-first-parameter-has-to-be-logging-level/"
updated: "2025-03-21"
category: PMD Rules
---

# “System.debug” First Parameter Has To Be Logging Level

**Impact area**

Manageability

**Severity**

Medium

**Affected element**

Apex Class

## Rule ID

**SF-SYS-DEBUG**

Impact

"System debug" has to set Logging level as first parameter. Having the Logging level specified provides a cleaner log and improves readability of it.

Remediation

Add Logging level as first parameter in "System.debug" method.

**Time to fix**

10 min
