-
Notifications
You must be signed in to change notification settings - Fork 1.5k
ja plugin dev style
langbot-wiki-sync[bot] edited this page Jul 29, 2026
·
1 revision
プラグインでは、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')Automatically synchronized from langbot-app/langbot-wiki.
简体中文
指南
开发者
- 插件开发
- 插件 SDK API
- 核心开发
API 参考
- Service API
English
Guides
Developers
-
Plugin Development
- Plugin Development Tutorial
- Completing Plugin Configuration Information
- Plugin Directory Structure
- Component Development
- Code Style Guide
- Migration Guide
- Publish Plugin
- Plugin SDK API
- Core Development
API Reference
- Service API