Winston wrote invalid characters to file
<p>My logger was working fine, but suddenly my <code>logger.query</code> stopped working. It started returning some unknown character error as <code>result</code> while the <code>err</code> was still <code>null</code>.</p>

<p>I checked the file and found some weird characters between two logs.</p>

<p>gedit shows the characters as:</p>

<blockquote>
  <p>\00\00\00\00\00\00\00\00\00\00...
  while notepad just shows blank space</p>
</blockquote>

<p>I think it might have been in process of writing the file but was shutdown. Can anybody tell me the reason why this happened? Any way to fix the file?</p>