When to use this skill
ALWAYS use this skill when the user mentions:
- Unified logging for dev and release builds
- Log filtering or persistence
- Safe diagnostics without leaking secrets
Trigger phrases include:
- "logging", "log levels", "filtering", "persistence", "diagnostics"
- "log", "level", "filtering", "persistence", "diagnostics"
How to use this skill
- Define log levels and redaction rules
- Configure logging plugin outputs and filters
- Implement diagnostic toggles for release builds
- Validate log storage location and rotation policy
Outputs
- Logging strategy and configuration
- Redaction and rotation checklist
Scope
- Boundary: Logging plugin usage only
- Key points: Redaction and environment-specific verbosity
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/logging/
- https://v2.tauri.app/zh-cn/plugin/logging/
Keywords
tauri logging, log levels, diagnostics, redaction
Common Gotchas
- Version compatibility: Pay attention to compatibility between framework versions and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common problem; it is recommended to use the editor's syntax checking
- Environment variables: Ensure all necessary environment variables are set correctly, and do not hardcode sensitive information
- Dependency conflicts: When multiple versions coexist, pay attention to dependency conflicts and use a lock file to pin versions
- Performance pitfalls: In large data volume scenarios, pay attention to performance optimization and avoid common problems such as N+1 queries
Usage workflow
Step 1: Environment preparation
Ensure the development environment has the necessary dependencies and tools installed.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core features
Implement the core functionality according to the example code.
Step 4: Testing and verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and release
After development is complete, perform deployment and monitoring.