6

Except for that post, I can't find anything on the web that is a good answer to that question.

Is there any way to rotate log files with QuickFIX/J ? I am using Log4j to rotate my log files, but I was not able to rotate the QuickFIX messages.

Thanks a lot

Grant Birchmeier
  • 17,809
  • 11
  • 63
  • 98
justinlevol
  • 1,101
  • 2
  • 12
  • 19

1 Answers1

0

I just tried:

cd <fix log directory>
for i in *; do echo -n | sudo tee $i; done

This truncated the logs 0 bytes. Fix operation continues fine and the logs are being filled from the start again. So, truncation (and rotation w/ truncatio) is supported. (quickfix/j 1.6.1)

youurayy
  • 1,635
  • 1
  • 18
  • 11