---
schema_version: "1"
id: dd6c2a661b99e823a889f9ae3e97956a40be9cbaac79b942fd708452189d91c1
title: デバッグログを使用した自己管理ゲートウェイのトラブルシューティング
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/gateway/1.9/flex-troubleshoot-debug-logs.md
canonical_url: https://docs.mulesoft.com/jp/gateway/1.9/flex-troubleshoot-debug-logs
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 59c659c757ec3ff8925bfd85a915768a3d48aa51cc0b2dc108ec4d0e59e1c69f
description: MuleSoft Documentation Site
release: "1.9"
latest: false
---
# デバッグログを使用した自己管理ゲートウェイのトラブルシューティング

Flex Gateway のトラブルシューティングを行う場合、ランタイムログレベルを ​`debug`​ に設定して、より詳細なランタイムログを取得します。

このページでは、デバッグランタイムログの設定方法について説明します。デバッグアクセスログを設定するには、​[メッセージログポリシー](https://docs.mulesoft.com/jp/gateway/1.9/policies-included-message-logging)​の ​`level`​ パラメーターを ​`DEBUG`​ に設定します。

## [](#デバッグログの設定の例)デバッグログの設定の例

接続モードとローカルモードの両方で、次の YAML 設定ファイルを使用してデバッグランタイムログを設定します。

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

デバッグランタイムログを設定するには、次のチュートリアルで設定の詳細が要求された場合に前述の YAML 設定ファイルを使用します。

- [接続モードでの外部ログの設定](https://docs.mulesoft.com/jp/gateway/1.9/flex-conn-third-party-logs-config)
- [ローカルモードでの外部ログの設定](https://docs.mulesoft.com/jp/gateway/1.9/flex-local-third-party-logs-config)

ログ設定ファイルをすでに設定している場合は、現在のファイルの ​`logging.runtimeLogs.logLevel`​ を ​`debug`​ に設定して、デバッグランタイムログを有効にします。これは、ログ出力の場所やアクセスログに影響しません。

## [](#関連情報)関連情報

ランタイムログ出力を表示するには、次を参照してください。

- [接続モードの Runtime Manager でのランタイムログの表示](https://docs.mulesoft.com/jp/gateway/1.9/flex-view-logs-in-runtime-manager)
- [標準出力ログの表示](https://docs.mulesoft.com/jp/gateway/1.9/flex-local-view-logs)