Use sync IO for the logger file
Merge pull request #1496 from ironcladlou/nodelogger_fix

Use sync IO for the logger file