Greetings,

I am using boost::log with a text_file_backend sink with file rotation for logging on a long running application. I have set it up to clear earlier logs when the logging directory reaches a certain size, but I would like to preserve the initial log as it contains useful configuration information that may not be repeated in later logs. I thought I might be able to do this using set_close_handler, and making a copy but there does not appear to be a way to get the actual file information.

Thanks,

Marc

 

ASG

Marc Houde, Sr Software Engineer

marc.houde@asg.com |  703.464.1624
www.asg.com |  800.333.8666 USA Only

Facebook  |  LinkedIn  |  Twitter  |  YouTube