Enhance logger to output filename of warning