3

I'm trying to use boost log library in my application but i have problem.

How to configure boost log to have 3 loggers which log to different files. example:

  • main_logger(main.log)
  • gui_loger(gui.log)
  • some_other_logger(other.log)

I want also use logging on different levels(info, warn, debug, error).

Example:

BOOST_LOG_SEV(main_logger, logging::trivial::debug)

How to configure this?

4

1 回答 1

3

您可以使用多文件后端:Boost.Log 多文件后端

于 2013-08-12T12:42:51.487 回答