QuickFIX/J rotate .messages.log
Asked Answered
L

1

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

Liebermann answered 26/10, 2015 at 18:16 Comment(1)
Hi, did you ever find a solution to this? I have the same problem and can't find a good way to get around it.Londalondon
A
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)

Arkhangelsk answered 3/2, 2017 at 11:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.