> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# コードスタイルガイド

## ロギング

プラグインでは、`logging`モジュールを使用してログを記録してください。`print`文を使用しないでください（これはコンテナ環境でログが出力されなくなります）。

```python theme={null}
import logging

logger = logging.getLogger(__name__)  # 任意の Python ファイルの先頭で logging モジュールをインポートし、logger オブジェクトを定義します

logger.info('This is an info message')  # logger.info を使用して info レベルのログを記録します
logger.warning('This is a warning message')
logger.error('This is an error message')
```
