Search code examples
dcmtk

DCMTK change logger filename


I am very confused about the DCMTK > 3.6.0 logging mechanism oflog/log4cplus

I simply need my code to specify the logname for dcmtk to log into. How is that done ?

Thanks!


Solution

  • The answer can be found in DCMTK's "logger howto": https://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_LogProgram#Redirecting-log-output-to-a-file