---
schema_version: "1"
id: 5854d98287cf1fd0323bab5a3f3232e80b109a2cc6d839a8becae5fcd8bd5965
title: Logging and Debugging
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/mule-runtime/4.11/logging-and-debugging.md
canonical_url: https://docs.mulesoft.com/mule-runtime/4.11/logging-and-debugging
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7b200bd41f0c71fad622e71bb14b705d59882f5f016675f86a0e46d99d354889
description: MuleSoft Documentation Site
release: "4.11"
latest: false
---
---
product: Mule Runtime
version: 4.11
---

# Logging and Debugging

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

MuleSoft provides a variety of logging and debugging options for Mule apps.

Application logs and a runtime log help you monitor and troubleshoot your apps and the Mule server.
For details, see [Configuring Logging](https://docs.mulesoft.com/mule-runtime/4.11/logging-in-mule).

You can [enable verbose logging](https://docs.mulesoft.com/mule-runtime/4.11/enable-verbose-logging) for connectors and modules to record debug
level information in the logs.

The Logger component can help you monitor or even debug your Mule app by logging important
information such as error messages, status notifications, payloads, and so on. You can add a Logger
anywhere in a flow, and you can configure it to log a string that you specify, the output of a
DataWeave expression you write, or any combination of strings and expressions. For details, see
[Logger Component](https://docs.mulesoft.com/mule-runtime/4.11/logger-component-reference) in the Core component documentation.

To control the display of Mule stack traces, you can use command-line arguments or set properties in
Anypoint Studio. For details, see [Configuring Mule Stack Traces](https://docs.mulesoft.com/mule-runtime/4.11/configuring-mule-stacktraces).

To troubleshoot a Mule app in Anypoint Studio, you can use the
[Studio Visual Debugger](https://docs.mulesoft.com/studio/visual-debugger-concept), which lets you set breakpoints to
stop execution and check events. If you are creating your Mule app outside of Studio, you can either
use MUnit to test your app, or you can activate remote debugging. For details, see
[Debugging Outside Studio](https://docs.mulesoft.com/mule-runtime/4.11/debugging-outside-studio).

If you are running your Mule application in CloudHub, see
[View Log Data](https://docs.mulesoft.com/cloudhub/viewing-log-data) for additional information about log data and
persistence.
