ロギング
プラグインでは、loggingモジュールを使用してログを記録してください。print文を使用しないでください(これはコンテナ環境でログが出力されなくなります)。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
This documentation has moved to langbot.app/docs. This legacy site is no longer updated.
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')
