Nombre de journaux par page:
{% extends 'TdbBaseBundle::layout.html.twig' %} {% from "TdbBaseBundle::macros.html.twig" import userChip, ipInfo %} {% block title %}Journaux{% endblock %} {% block body %}
Date | Canal | Niveau | Utilisateur | IP | Opération | Contexte | Extra |
---|---|---|---|---|---|---|---|
{{ log.loggedAt|date('j M Y H:i:s') }} | {{ log.channel|upper }} | {{ log.levelName }} | {% set user = get_user(log.extra['user']) %} {% if user is not null %} {{ userChip(user, 30) }} {% elseif log.extra['user'] != "" %} {{ log.extra['user'] }} {% else %} N/A {% endif %} {% if log.extra['impersonatedBy'] is defined and log.extra['impersonatedBy'] is not null %} {% set user = get_user(log.extra['impersonatedBy']) %} {% if user is not null %} ({{ userChip(user, 30) }}) {% elseif log.extra['impersonatedBy'] != "" %} ({{ log.extra['impersonatedBy'] }}) {% endif %} {% endif %} | {% if log.extra['ip'] is defined and log.extra['ip'] != "" %} {{ ipInfo(log.extra['ip']) }} {% else %} N/A {% endif %} | {{ log.message }} | {% if log.context|length > 0 %} {% else %} {% endif %} | {% if log.extra|length > 0 %} {% else %} {% endif %} |