Since Boost log having many characteristics like thread- safe and etc., I want to know that can we able to create many instances of the logger.
Because I read in document that Boost log creates only one instance. Is it true?
Is there any other logging library which supports from Windows XP or it may be platform independent.
Please Suggest your ideas and information that you may know.
Thanks,
AK.
Asked
Active
Viewed 962 times
1

Arun kumar Kalaiarasan
- 286
- 4
- 15
-
1Can you explain why you need **many** instances of the logger. You can have many sinks: http://www.boost.org/doc/libs/1_60_0/libs/log/doc/html/log/tutorial/sinks.html – vcp Mar 18 '16 at 08:04
2 Answers
1
Yes, it is possible to create many logger by using
BOOST_LOG_ATTRIBUTE_KEYWORD(tag_attr, "Tag", std::string)
or
BOOST_LOG_SCOPED_THREAD_TAG("Tag", tag_)
For more details, you can check the following link
-
Yes , Finally I got the answer for What I need . Thank You very much . – Arun kumar Kalaiarasan Sep 12 '16 at 13:03
0
You can create as many loggers as you like, see here, for instance. However, there is only one logging core, and you cannot create multiple cores.

Andrey Semashev
- 10,046
- 1
- 17
- 27
-
Can we make each logger to write in its own separate files ? If my question is wrong Please Explain me. – Arun kumar Kalaiarasan Mar 21 '16 at 07:19
-
Yes, this is explained in the answer here: http://stackoverflow.com/questions/34362871/use-channel-hiearchy-of-boost-log-for-severity-and-sink-filtering/34372526#34372526 – Andrey Semashev Mar 21 '16 at 14:20