Boost logo

Boost Users :

Subject: [Boost-users] [log] connecting a logger to a specific sink
From: Igor R (boost.lists_at_[hidden])
Date: 2013-12-04 05:31:23


 Hello,

I'm integrating Boost.Log to my project, and have a couple of questions.
First of all, I'd like each instance of some class to write its log to
a separate rotating file. I understand how to setup such a sink, but
can't find a way to connect a particular source (logger) to the sink.
Is it possible?
Besides, when setting up the file, I configure it with:
keywords::format = "[%TimeStamp%]: %Message%"
but %TimeStamp% doesn't seem to get recognized, so I get empty [ ] in
the file. Do I miss some header file?

Thanks.


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