There was an error while loading. Please reload this page.
Mit 24 dedizierten Kategorien bietet der Logger umfassende Abdeckung für die Discord-Bot-Entwicklung.
Verwenden Sie die Discord-spezifische Interaktions-ID als Correlation ID im Kontext des Commands.
Correlation ID
from logs import Logs, Category async def handle_slash_command(ctx): # Nutzt die Interaktions-ID als Trace-ID Logs.set_correlation_id(ctx.interaction.id) with Logs.context(f"CMD:{ctx.command.name}"): Logs.info(Category.SLASH_CMD, "Command invoked", user=ctx.author.id) # ... Logik ... Logs.success(Category.SLASH_CMD, "Command executed successfully.")