docs: add code style guide in English, Japanese, and Chinese

This commit is contained in:
Junyan Qin
2025-12-29 23:50:10 +08:00
parent de5660ddc4
commit 08bcce19db
4 changed files with 48 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Code Style Guide
## Logging
In plugins, please use the `logging` module to record logs, do not use `print` statements (this will cause logs to not be output in the container environment).
```python
import logging
logger = logging.getLogger(__name__) # Import logging module at the beginning of any Python file and define logger object
logger.info('This is an info message') # Use logger.info to record info level logs
logger.warning('This is a warning message')
logger.error('This is an error message')
```