CLI tool for sending local development logs to Logfox.
npm install -g @logfox/cli# Authenticate
logfox login
# Run your app with logging
logfox run --name my-app -- npm startLogs appear in Logfox under environment "local".
Run logfox --help to see all available commands.
logfox runwraps your command and captures stdout/stderr- Logs are parsed (JSON or plain text) and batched
- Sent to Logfox under environment "local" with app name
local-{hash}-{name} - Issues are detected and grouped just like production logs
- JSON logs (pino, winston, bunyan): Structure is extracted automatically
- Plain text: Log levels detected from common patterns (ERROR, WARN, INFO, DEBUG)
Config is stored in ~/.logfox/config.json. Use logfox config to view current settings.
| Key | Default | Description |
|---|---|---|
apiUrl |
https://api.logfox.ai |
Logfox API endpoint |
appUrl |
https://app.logfox.ai |
Logfox web app (for login) |
teamId |
(from login) | Active team |
To point the CLI at local services:
logfox config:set apiUrl http://localhost:3000
logfox config:set appUrl http://localhost:4000
logfox login