compile away DEBUG/TRACE logs when NDEBUG
support PID in file name
Merge pull request #2 from kmaehashi/add-pid

Compile away DEBUG if NDEBUG & add pid support