-
Notifications
You must be signed in to change notification settings - Fork 1.5k
zh 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 记录信息级别日志
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