user1799537
user1799537

Reputation:

boost logger, multiple logfiles and loggers

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:

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?

Upvotes: 3

Views: 4412

Answers (1)

Mateusz Jacobsen
Mateusz Jacobsen

Reputation: 451

You can use multi-file backend: Boost.Log multi-file backend.

Upvotes: 3

Related Questions