Logging structure for mixed C #, C ++ managed and unmanaged C ++ applications

Concrete background: I have a Word add-in written in C #. This add-in calls a plugin designed for another application (EndNote) written in C ++, which is further divided into managed and unmanaged code. C # code runs from one process, and C ++ code runs from another. In addition, C ++ code is multi-threaded.

I am considering using any of the following combinations, but I am open to other suggestions:

  • log4net
  • log4cxx
  • Nlog
  • System.Diagnostics.Trace
  • System.Diagnostics.TraceSource

What would you use?

+4
source share
1 answer

I would choose a framework for C # and one for C ++ (are you considering log4cplus?) And decide which one can be easily adapted so that its log output is written to a different structure. Which one to choose depends on the structure of your code ("who knows whom?").

+2
source

All Articles