Boost logo

Boost Users :

Subject: [Boost-users] [boost-users][logging] limiting/truncation the output file
From: Igor R (boost.lists_at_[hidden])
Date: 2008-09-18 11:39:22


Hello,

I know the above library is not a part of the boost yet, but probably
some of you had an experience with it.
I log to a text file. What I need is to ensure that the file doesn't
exceed some maximal size. For the sake of simplicity, I'd like just to
re-create the file when it grows to much. I guess I may not just
delete it externally, as it's managed by the logger. So how can I tell
the logger to delete the file?
(Ideally, I'd like to "scroll" the data in the file like in a queue -
first in first out, but I guess it's impossible, isn't it?)

Thank you,

Igor'.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net