1

    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.

  • 1
    Can 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 Answers2

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

Community
  • 1
  • 1
Thiyaga
  • 69
  • 8
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