Commit Graph
66 Commits
Author SHA1 Message Date
Benjamin Arntzen 14a653a377 Refactored log line parsing in parseLogLines function. 2024-06-27 07:29:31 +01:00
Benjamin Arntzen (aider) 5a026ab53a Refactored log line parsing to improve JSON transformation and error handling. 2024-06-27 07:27:50 +01:00
Benjamin Arntzen d5ff988f70 Transform log lines to valid JSON format by wrapping keys in quotes and removing equal signs. 2024-06-27 07:25:10 +01:00
Benjamin Arntzen ecd29eaf77 Refactored log line parsing to improve JSON transformation and parsing. 2024-06-27 07:23:51 +01:00
Benjamin Arntzen 7f8489ba1d Transformed custom log format into valid JSON format in parseLogLines function. 2024-06-27 07:23:10 +01:00
Benjamin Arntzen 99baa79f86 Transformed custom log format into valid JSON strings when parsing log lines. 2024-06-27 07:21:42 +01:00
Benjamin Arntzen (aider) d6dad55fe1 Removed unnecessary return statements from parseLogLines function. 2024-06-27 07:20:01 +01:00
Benjamin Arntzen 99252d1453 Refactored log line parsing to handle nested JSON strings. 2024-06-27 07:18:42 +01:00
Benjamin Arntzen a3afac604b Parsed log lines by unescaping characters and parsing JSON strings. 2024-06-27 07:17:53 +01:00
Benjamin Arntzen (aider) c5e0f32d33 Fix unescaping of double quotes in log lines. 2024-06-27 07:15:52 +01:00
Benjamin Arntzen (aider) c1414cc050 Refactored escaping logic in parseLogLines function. 2024-06-27 07:14:36 +01:00
Benjamin Arntzen (aider) 6b098a7a21 Parsed log lines are now properly unescaped and returned. 2024-06-27 07:13:20 +01:00
Benjamin Arntzen (aider) b65d8a3138 Implemented a custom JSON parser in the parseLogLines function to handle nested JSON objects within the log lines. 2024-06-27 07:08:59 +01:00
Benjamin Arntzen (aider) 76c938daa1 Removed unnecessary string replacement in log parsing function. 2024-06-27 07:06:04 +01:00
Benjamin Arntzen (aider) 489c53254a Improved log parsing by unescaping double quotes and handling escaped whitespace in log entries. 2024-06-27 07:04:54 +01:00
Benjamin Arntzen (aider) 28b8af9398 Improved log parsing by unescaping double quotes in log lines. 2024-06-27 07:03:23 +01:00
Benjamin Arntzen (aider) cf13f3296a Implemented log parsing functionality and updated server to fetch and store valid log lines. 2024-06-27 07:01:10 +01:00
Benjamin Arntzen (aider) 9dc42fb8de Increased the time range for the API query from 4 seconds to 10 seconds. 2024-06-27 07:00:26 +01:00
Benjamin Arntzen (aider) 60a1da6879 Refactored log parsing and processing logic into separate functions. 2024-06-27 06:59:19 +01:00
Benjamin Arntzen (aider) a2eff2745c Enabled debug mode based on command line argument and improved logging in setInterval callback. 2024-06-27 06:58:06 +01:00
Benjamin Arntzen (aider) 9c560f00d0 Implemented debug mode and API request logic to fetch logs in server.js 2024-06-27 06:57:01 +01:00
Benjamin Arntzen (aider) 7fad589978 Implemented response handling logic to log whether the API response was empty or non-empty. 2024-06-27 06:55:37 +01:00
Benjamin Arntzen (aider) 8ca8d57f27 Implemented logging to display fetched logs. 2024-06-27 06:53:55 +01:00
Benjamin Arntzen (aider) 8a9d566902 Removed unnecessary event listeners and simplified WebSocket event handling in the client-side app.js file. 2024-06-27 06:52:53 +01:00
Benjamin Arntzen (aider) 837f581319 Added WebSocket event listeners and error handling in both client and server code. 2024-06-27 06:51:54 +01:00
Benjamin Arntzen (aider) 1c93bcbc18 Implemented event-based WebSocket communication to notify clients of node creation and light-up events. 2024-06-27 06:51:17 +01:00
Benjamin Arntzen (aider) 1035abf12f Implemented error handling for log fetching and updated the logs array accordingly. 2024-06-27 06:50:06 +01:00
Benjamin Arntzen (aider) 6cee982070 Implemented log processing functionality to filter out invalid logs. 2024-06-27 06:49:14 +01:00
Benjamin Arntzen 3e284dfe01 Removed error logging from the logs processing interval. 2024-06-27 06:49:06 +01:00
Benjamin Arntzen 4f0a0645e7 Simplified log processing by removing unnecessary error handling and logging. 2024-06-27 06:48:53 +01:00
Benjamin Arntzen (aider) e8d40e17d0 Added error handling and logging for log processing. 2024-06-27 06:46:37 +01:00
Benjamin Arntzen 39bede3a7a Implemented periodic log querying with error handling and empty log notification. 2024-06-27 06:46:09 +01:00
Benjamin Arntzen 3fd0fe0977 Improved error handling in log query interval function. 2024-06-27 06:45:42 +01:00
Benjamin Arntzen (aider) d12bb429ff Removed unnecessary log details from server.js 2024-06-27 06:43:49 +01:00
Benjamin Arntzen (aider) a5a4e0d1f6 Improved log processing by adding index logging, client count logging, and client address logging when sending events. 2024-06-27 06:42:59 +01:00
Benjamin Arntzen (aider) 2c7c2af3e2 Improved log parsing and processing, removed unnecessary console logs. 2024-06-27 06:41:57 +01:00
Benjamin Arntzen (aider) 8a7c70ae94 Added WebSocket event listeners and improved logging for sending data to clients. 2024-06-27 06:40:38 +01:00
Benjamin Arntzen (aider) 7ef10629e6 Implemented log parsing and processing logic in server.js 2024-06-27 06:39:35 +01:00
Benjamin Arntzen (aider) 95496f1770 Added new nodes with circle shape and grey color, updated node color to green when receiving a message, and reverted node color to grey after 500ms. 2024-06-27 06:37:12 +01:00
Benjamin Arntzen (aider) 18aefb11f0 Created a new app.js file and updated the server.js file to track new nodes and cache their IDs. 2024-06-27 06:34:30 +01:00
Benjamin Arntzen 6e12876a56 Added path module and updated static file serving to use path.join() 2024-06-27 06:34:29 +01:00
Benjamin Arntzen (aider) 6afb53a200 Implemented POST request with form-encoded data and headers for improved compatibility with the API endpoint. 2024-06-27 06:31:45 +01:00
Benjamin Arntzen 0dfec3f48c Reduced the time range for the log query from 5 seconds to 4 seconds. 2024-06-27 06:31:44 +01:00
Benjamin Arntzen (aider) 6794d7e0b4 Improved log parsing by handling escaped quotes and skipping empty lines. 2024-06-27 06:30:20 +01:00
Benjamin Arntzen (aider) 2372cc8a70 Implemented robust log parsing to handle invalid JSON entries in the log file. 2024-06-27 06:28:58 +01:00
Benjamin Arntzen (aider) 86c480566f Replaced HTTP request with file read to load logs in debug mode. 2024-06-27 06:28:19 +01:00
Benjamin Arntzen (aider) 25d4c41d88 Improved error handling and logging in the server.js file. 2024-06-27 06:27:09 +01:00
Benjamin Arntzen d33ac0d2ed Enabled debug mode and added support for loading logs from a local file. 2024-06-27 06:27:08 +01:00
Benjamin Arntzen dd76a2d749 Added support for a debug mode that queries logs for a specific timestamp. 2024-06-27 06:26:54 +01:00
Benjamin Arntzen (aider) ffb1d786df Update query timestamp in axios post request to fetch specific data. 2024-06-27 06:14:59 +01:00