@noma4i/react-native-logs
v1.0.0
Published
Simple CLI utility for viewing React Native Metro bundler logs in real-time
Downloads
4
Maintainers
Readme
React Native Logs
Simple CLI tool for viewing React Native Metro bundler logs in real-time. Start once and forget — automatically reconnects and saves logs to file.

Features
- 🚀 Start once, runs continuously with auto-reconnection
- 🎨 Color-coded log levels with clean output
- 💾 Saves logs to file automatically
- 🤖 Clean format perfect for AI debugging
- ⚙️ Configure via CLI args or environment variables
Installation
# Install globally
npm install -g @noma4i/react-native-logs
# or
yarn global add @noma4i/react-native-logs
# Use without installing
npx @noma4i/react-native-logs
# or
yarn dlx @noma4i/react-native-logsUsage
rn-logsOptions
# Custom Metro port
rn-logs --port 8082
# Timeout and reconnect settings
rn-logs --timeout 10000 --reconnect 2000
# Max log file lines
rn-logs --max-lines 500
# Environment variables
RN_LOGS_PORT=8082 rn-logs
# Help
rn-logs --helpLog Files
Logs are saved to ./logs/metro.log with timestamps and clean formatting — perfect for AI debugging.
License
MIT © noma4i
