diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
index 361e684fbf..3fb596b096 100644
--- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
+++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig
@@ -169,6 +169,7 @@
{% if index == 2 %}
{% endif %}
+
{% if call.class is defined %}
{% set from = call.class|abbr_class ~ '::' ~ call.function|abbr_method() %}
{% elseif call.function is defined %}
@@ -179,7 +180,14 @@
{% set from = '-' %}
{% endif %}
- - Called from {{ call.file is defined and call.line is defined ? call.file|format_file(call.line, from) : from|raw }}
+ {% set file_name = (call.file is defined and call.line is defined) ? call.file|replace({'\\': '/'})|split('/')|last %}
+
+ -
+ {{ from|raw }}
+ {% if file_name %}
+ (called from {{ call.file|format_file(call.line, file_name)|raw }})
+ {% endif %}
+
{% if index == stack|length - 1 %}