---
schema_version: "1"
id: 05656086754d2d7f352d3d29742491bcee4e061e22e2c1e4da39fabe78d879b2
title: LoggingLevel Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_System_LoggingLevel.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_System_LoggingLevel.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: b55df2c2613c3968111cb2d1513f7f60076598bcb5a4958616e22f90a690f5fb
description: Specifies the logging level for the System.debug method.
---
# LoggingLevel Enum

Specifies the logging level for the System.debug method.

## Enum Values

The following are the values of the System.LoggingLevel enum, listed from the lowest to the highest levels. The level is cumulative, that is, if you select FINE, the log also includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.

| Value | Description |
| --- | --- |
| NONE | No logging. |
| ERROR | Error and exception logging. |
| WARN | Warning logging. |
| INFO | Informational logging. |
| DEBUG | User-specified debug logging. |
| FINE | High level of logging. |
| FINER | Higher level of logging than FINE. |
| FINEST | Highest level of logging. |

## Usage

Log levels are cumulative. For example, if the lowest level, ERROR, is specified for Apex code, only System.debug methods with the log level of ERROR are logged. If the next log level, WARN, is specified, System.debug methods specified with either ERROR or WARN levels are logged.

In this example, if the log level is set to ERROR, the string MsgTxt isn’t written to the debug log because the debug method has a level of INFO.

System.debug(logginglevel.INFO, 'MsgTxt');

For more information on log levels, see [Debug Log Levels](https://help.salesforce.com/s/articleView?id=sf.code_setting_debug_log_levels.htm&language=en_US) in Salesforce Help.