A Node.js package to watch and parse VRChat log files in real-time.
- Watches VRChat log files
- Parses log messages into structured data
npm install vrchat-log-watcheror with pnpm:
pnpm add vrchat-log-watcherimport { VrchatLogWatcher } from "vrchat-log-watcher"
const log = new VrchatLogWatcher()
// Log all messages
log.on('raw', console.log)
// Log all debug messages
log.on('debug', console.log)
// Log all debug messages with the topic API
log.on('debug', (data) => {
if (data.topic == 'API')
console.log(data)
})| event | description |
|---|---|
| raw | All VRChat logs without any parsing |
| data | all debug / warning / error events |
| debug | debug events |
| warning | warning events |
| err | error events |
| stringLoad | stringLoad events |
| imageLoad | imageLoad events |
| join | join instance |
| leave | leave instance |
| playerJoined | player joined instance |
| playerLeft | player left instance |
Example log message:
2025.02.15 02:12:56 Debug - [API] Requesting [...]
resolves to:
{
"date": new Date("2025.02.15 02:12:56"),
"type": "debug",
"data": "[API] Requesting [...]",
"topic": "API",
"content": "Requesting [...]"
}topic and content might not be set depending on the log message
Pull requests are welcome! If you have any ideas, feel free to open an issue.