Change observer to output function, file and line information. Fix #7.
Use __PRETTY_FUNCTION__ if not _WIN32.