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文を使用しないでください(これはコンテナ環境でログが出力されなくなります)。
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')