UTMStack
UTMStack copied to clipboard
[FEATURE] Application logs enhancement
Is Your Feature Request Related to a Problem? Please Describe. At present, only the backend sends logs to Elasticsearch. Other services output logs to the console, which complicates the process of detecting issues in the application index.
Describe the Solution You'd Like I propose creating libraries dedicated to sending logs to the Elasticsearch index. This solution would involve establishing a format that clearly identifies the source of errors, enhancing application monitoring. Such an approach would not only facilitate quicker detection and replication of issues but also benefit our community and clients, who could utilize these logs for more efficient bug reporting.
Log index
- Timestamp: The exact time when the log was recorded.
- Log Level: Indicates the severity of the log.
- Service: Identifies which microservice generated the log.
- Host: The server where the issue occurred.
- Environment: Distinguishes between different deployment stages.
- Operation: The specific operation being executed.
- Message: A descriptive message about the log event.
- Error Code: A specific code for categorizing the error.
- Stack Trace: Detailed error information for debugging.
- Additional Data: Any other relevant information, structured as needed.