Skip to content

Conversation

@Xarlos89
Copy link
Owner

This PR updates the logging API to allow identifying log settings not only by numeric ID but also by a predefined set of exact string names that match the entries in the database (e.g., "Verification Log", "Join Log", etc.).

Key Changes:

  • GET /logging endpoint can now accept either no parameter (returns all), an integer id, or a predefined string name to fetch a specific log setting.

  • PUT /logging/ endpoint accepts either an integer ID or a predefined name to update a log setting.

  • POST /logging endpoint enforces that new log settings can only be added with valid predefined names (matching DB names).

  • DELETE /logging/ endpoint supports deletion by either ID or predefined log name.

  • Updated DB helper with queries supporting both ID and exact name lookups for logging settings.

  • Allowed log names set updated to precisely match log names defined in the database initialization script, including spaces and capitalization.

xarlos added 3 commits August 17, 2025 20:00
@Xarlos89 Xarlos89 added feature New feature or request chore repo/project maintenance labels Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore repo/project maintenance feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants