Fix file and line reporting in logging