Accessing Logs via Browser Developer Tools
Admins can use the following tool to quickly access error and exception logs generated on the server. This is a useful tool if end-users ever encounter any unexpected behaviour
How to Access Application Logs
- Open Developer Tools
- Press
F12or right-click and select "Inspect" in your browser - Navigate to the "Console" tab
- Press
-
Retrieve Logs
// Type this command in the browser console:
window.getLog() -
Understanding Log Output The logs will be displayed in the console with the following structure:
[
{
"timestamp": "2025-02-14T10:30:00.000Z",
"logLevel": "0-6",
"eventId": "unique_identifier",
"category": "component_name",
"message": "log message",
"exception": "error details if applicable"
} // ... more entries
]
Tips for Log Analysis
- Logs are sorted chronologically
- Use browser console filtering to search specific terms
- Log levels indicate severity:
- Trace=0
- Debug=1
- Information=2
- Warning=3
- Error=4
- Critical=5
- None=6
Troubleshooting
If getLog() returns no results:
- Verify you're logged in as an administrator
- Check browser console for JavaScript errors
- Ensure network connectivity to the API server
- Confirm your authentication token is valid
Security Note
The logging functionality is intended for administrator use only. Access to logs may contain sensitive information and should be handled accordingly.