Fix logger to output correct filename/funcname when calling log/logf directly.