logging function with better functionality then nslog.
it includes the file name and line number to make it easier to track down log statements.