{% extends "base.html" %} {% load static %} {% block title %}Integration Log - {{ log.system.name }}{% endblock %} {% block content %}
{{ log.level }}
{{ log.status|title }}
{{ log.request_data|pprint }}
{{ log.response_data|pprint }}
{{ log.error_details }}
{{ log.additional_data|pprint }}
{{ log.timestamp|date:"F j, Y H:i:s" }}
{{ log.timestamp|timesince }} ago{% if log.duration %} {{ log.duration }} ms {% else %} Not available {% endif %}
| API URL | {{ log.system.api_url|default:"Not available" }} |
| Status | {% if log.system.is_active %}Active{% else %}Inactive{% endif %} |
| Health | {{ log.system.health_status|default:"Unknown"|title }} |
| Last Sync | {{ log.system.last_sync|default:"Never"|date:"M d, Y H:i:s" }} |
| Log ID |
{{ log.pk }}
|
| User | {{ log.user|default:"System" }} |
| API Version | {{ log.api_version|default:"Not specified" }} |
| Direction | {% if log.direction == 'inbound' %} Inbound {% elif log.direction == 'outbound' %} Outbound {% else %} Internal {% endif %} |
| IP Address | {{ log.ip_address|default:"Not available" }} |
| HTTP Status | {% if log.http_status %} {{ log.http_status }} {% else %} N/A {% endif %} |
| Tenant | {{ log.tenant|default:"System-wide" }} |