Twidget provides robust logging functionality to assist users in monitoring their applications. The logs captured by Twidget include essential fields that offer insights into the application's behavior and performance.
Twidget supports two primary log levels:
INFO: General operational entries about what the application is doing.
ERROR: Logs that capture error events that might still allow the application to continue running.
Custom Logs: Within the function builder, you have the ability to manually trigger logs, incorporating personalized messages using the built-in Log command.
Error Logs: In the event of an API error or exception, error logs are generated, containing valuable information to aid in issue identification and resolution.
Each log entry recorded by Twidget will include the following fields:
Level: The severity level of the log (INFO or ERROR).
Time: The timestamp when the log entry was created.
URL Path: The URL path of the request being logged.
Message: A descriptive message accompanying the log entry.
Trace ID: A unique identifier that persists for a single request, ensuring that all logs generated within that request share the same ID.
The Trace ID
is particularly useful for tracking the lifecycle of a request from start to finish. All log entries within the same request will have the same trace ID, enabling easier debugging and tracing of application behavior.