Search code examples
c++log4cxx

Is it possible and how to create independent loggers per process with log4cxx library?


How can we have different logger ( that has independent configuration) per process when using log4cxx library?


Solution

  • log4cxx docs, Configuration section shows how to configure logging by a configuration file passed as a command line arg. So basically you launch your process specifying a configuration file (different for different processes)