Implement debug logging.

- Added default log file output to .gitignore.
- Disabled MSVC specific warnings about "unsafe" C library functions.