logging: Fix logf functions to determine file and line from caller at compile time, instead of always using values from its own file (which are less than useful).