Files
chapter-organizer/WebApp/logs/webapp-20251203.txt
T
poprhythm a0313687da 1. Fixed Misleading Property Names
- File: WebApp/ChapterSettings.cs
  - Change: Renamed StateContainer.UserId to ScheduledTeams
  - Impact: Property name now accurately reflects what it stores

  2.  Added Structured Logging with Serilog

  - Packages Added:
    - Serilog.AspNetCore
    - Serilog.Sinks.Console
    - Serilog.Sinks.File
  - Files Modified:
    - Program.cs - Added Serilog configuration with console and file logging
    - appsettings.json - Added Serilog minimum log levels
    - appsettings.Development.json - Added Debug level logging for development
  - Benefits:
    - Structured log output for better parsing/analysis
    - Automatic file rotation (daily, 30 days retention)
    - Logs stored in logs/webapp-.txt
    - Better formatted console output

  3.  Added Global Error Handling

  - File Created: WebApp/Components/Shared/AppErrorBoundary.razor
  - File Modified: WebApp/Components/App.razor
  - Features:
    - Catches unhandled exceptions throughout the app
    - Shows detailed error info in Development environment
    - Shows user-friendly message in Production
    - Logs errors automatically
    - Provides "Return to Home" button

  4.  Enhanced Input Validation

  - File Modified: WebApp/Components/Login.razor
  - Validations Added:
    - Email: Required, valid email format, max 100 chars, regex validation
    - Password: Required, min 8 chars, max 100 chars
  - Benefits:
    - Client-side validation before submission
    - Clear error messages for users
    - Prevents invalid data submission
2025-12-03 14:10:08 -05:00

8 lines
3.0 KiB
Plaintext

2025-12-03 14:07:50.779 -05:00 [INF] Login rate limiting service started {"SourceContext":"WebApp.Authentication.LoginRateLimitService"}
2025-12-03 14:07:53.133 -05:00 [ERR] Error boundary triggered {"SourceContext":"WebApp.Components.Shared.AppErrorBoundary","RequestId":"0HNHIJT0PE9UJ:00000001","RequestPath":"/login","ConnectionId":"0HNHIJT0PE9UJ"}
2025-12-03 14:08:08.603 -05:00 [DBG] Successful credential validation for admin@test.com {"SourceContext":"WebApp.Authentication.AuthenticationService","ActionId":"fab60e78-16b9-40cd-897c-fed8413ce202","ActionName":"WebApp.Authentication.AuthController.CookieLogin (tsa-chapter-organizer)","RequestId":"0HNHIJT0PE9UK:00000001","RequestPath":"/Auth/CookieLogin","ConnectionId":"0HNHIJT0PE9UK"}
2025-12-03 14:08:08.626 -05:00 [INF] Successful login for admin@test.com (Administrator) from ::1 {"SourceContext":"WebApp.Authentication.AuthController","ActionId":"fab60e78-16b9-40cd-897c-fed8413ce202","ActionName":"WebApp.Authentication.AuthController.CookieLogin (tsa-chapter-organizer)","RequestId":"0HNHIJT0PE9UK:00000001","RequestPath":"/Auth/CookieLogin","ConnectionId":"0HNHIJT0PE9UK"}
2025-12-03 14:08:08.666 -05:00 [ERR] Error boundary triggered {"SourceContext":"WebApp.Components.Shared.AppErrorBoundary","RequestId":"0HNHIJT0PE9UK:00000003","RequestPath":"/","ConnectionId":"0HNHIJT0PE9UK"}
2025-12-03 14:08:13.026 -05:00 [WRN] Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'. {"EventId":{"Id":20504,"Name":"Microsoft.EntityFrameworkCore.Query.MultipleCollectionIncludeWarning"},"SourceContext":"Microsoft.EntityFrameworkCore.Query","TransportConnectionId":"u30JsHVho23GyKv2giOOPQ","RequestId":"0HNHIJT0PE9UK:00000011","RequestPath":"/_blazor","ConnectionId":"0HNHIJT0PE9UK"}
2025-12-03 14:08:14.140 -05:00 [WRN] Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'. {"EventId":{"Id":20504,"Name":"Microsoft.EntityFrameworkCore.Query.MultipleCollectionIncludeWarning"},"SourceContext":"Microsoft.EntityFrameworkCore.Query","TransportConnectionId":"u30JsHVho23GyKv2giOOPQ","RequestId":"0HNHIJT0PE9UK:00000011","RequestPath":"/_blazor","ConnectionId":"0HNHIJT0PE9UK"}