---
schema_version: "1"
id: 52fbdbd0a03db7de934e61ad1449946738550c7f63c2a7cf0e9997a14210328d
title: Troubleshooting Self-Managed Gateway with Debug Logs
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.12/flex-troubleshoot-debug-logs.md
canonical_url: https://docs.mulesoft.com/gateway/1.12/flex-troubleshoot-debug-logs
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 09bab382b85ce862fe149f374f78b9fc6cc09ea649d9e39d825f93a7360f1b71
description: MuleSoft Documentation Site
release: "1.12"
latest: false
---
---
product: Omni Gateway
version: 1.12
---

# Troubleshooting Self-Managed Gateway with Debug Logs

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

When troubleshooting Flex Gateway, set the runtime log level to `debug` for more verbose runtime
logs.

This page explains how to configure debug runtime logs. To configure debug access logs, set the
`level` parameter in your [Message Logging policy](https://docs.mulesoft.com/gateway/1.12/policies-included-message-logging) to `DEBUG`.

## Debug Logs Configuration Example

For both Connected Mode and Local Mode, configure debug runtime logs using the following YAML
configuration file:

```yaml
apiVersion: gateway.mulesoft.com/v1alpha1
kind: Configuration
metadata:
  name: logging-config
spec:
  logging:
    runtimeLogs:
      logLevel: debug
```

To configure debug runtime logs, use the previous YAML configuration file when prompted for your
configuration details in the following tutorials:

- [Configure External Logs in Connected Mode](https://docs.mulesoft.com/gateway/1.12/flex-conn-third-party-logs-config)

- [Configure External Logs in Local Mode](https://docs.mulesoft.com/gateway/1.12/flex-local-third-party-logs-config)

If you have already configured a logging configuration file, set `logging.runtimeLogs.logLevel` to
`debug` in you current file to enable debug runtime logs. This does not affect the log output
location or access logs.

## See Also

To view runtime log output, see:

- [Viewing Runtime Logs in Runtime Manager in Connected Mode](https://docs.mulesoft.com/gateway/1.12/flex-view-logs-in-runtime-manager)

- [Viewing Standard Output Logs](https://docs.mulesoft.com/gateway/1.12/flex-local-view-logs)

- [Known Issues](https://help.salesforce.com/s/issues)
