Logging question

134 views
Skip to first unread message

Christoph Ernst

unread,
Apr 21, 2015, 11:34:20 AM4/21/15
to fo-d...@googlegroups.com
Hello everyone,

i created a C-Store SCP with FO DICOM, using the example of the project.

Logging to the console works fine (using DICOM.Log), but i'd like to log into a logfile instead.
I created a NLog.config file in my project with a file target, but FO Dicom doesn't use it. It always logs to the console only.

How can i change the logging to log into a file?

Thanks,
Christoph



Anders Gustafsson Cureos AB

unread,
Apr 21, 2015, 12:26:26 PM4/21/15
to fo-d...@googlegroups.com
Hi Christoph.

By default, fo-dicom uses the ConsoleLogManager. To change log manager type, you should add this statement near the initialization of your application:

LogManager.Default = new NLogManager();

Regards,
Anders

Christoph Ernst

unread,
Apr 22, 2015, 4:29:40 AM4/22/15
to fo-d...@googlegroups.com
Thanks Anders,

that did the trick.

Regards,
Christoph
Reply all
Reply to author
Forward
0 new messages