When possible, record the file/line number that logged an error/warning.