VibeTunnel Logging Style Guide
Logging style
1. No Colors in Error/Warn
2. Use Colors in logger.log Only
3. Always Include Error Object
4. Message Format
- Start with lowercase (except acronyms)
- No periods at end
- Be concise
- Include relevant IDs
5. No Prefixes or Tags
Common Patterns
Lifecycle Events
Operations
Debug (no colors needed)
Quick Reference
Event Type | Log Level | Color |
---|---|---|
Success | log | chalk.green |
Connection | log | chalk.blue |
Disconnect | log | chalk.yellow |
Shutdown | log | chalk.yellow |
Error | error | none |
Warning | warn | none |
Debug info | debug | none |
Metadata | log | chalk.gray |