Add logs view for timer functions

- Create new database table `timer_function_invocations` to track function executions
- Implement `/logs/<function_id>` route in timer routes to fetch and display invocation logs
- Add new logs template for timer functions with detailed invocation information
- Update header templates to include logs URL for timer functions
This commit is contained in:
Peter Stockings
2025-02-17 00:24:49 +11:00
parent 29da93a9f8
commit 77957a61a3
8 changed files with 132 additions and 7 deletions

View File

@@ -10,7 +10,8 @@ show_logs=True,
show_client=False,
show_history=True,
edit_url=url_for('timer.edit', function_id=function_id),
cancel_url=url_for('timer.overview')) }}
cancel_url=url_for('timer.overview'),
logs_url=url_for('timer.logs', function_id=function_id)) }}
<div id="app" class="p-1">