Help with injecting Nlog through Microsoft.Extensions.Logging #1684
-
The application has been using NLog through the LogManager and that has been working really well. The problem is that I can´t get logging in fo-dicom with Microsoft.Extensions.Logging In the previous version the logger has been registered through
Since fo-dicom 5.1 no longer supports the old way (issue 1605 https://github.com/fo-dicom/fo-dicom/issues/1605 ) I have experimenting with Microsoft.Extensions.Logging.
And when I make a call like client = DicomClientFactory.Create ..., client.AddRequestASync, client.SendAsync there is no logging. I made a test class and injected it and there the logger object is injected so it seems that NLog is registered correctly.
Any help would be much appreciated Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Finally I figured out. Maybe this will help someone else.
|
Beta Was this translation helpful? Give feedback.
Finally I figured out. Maybe this will help someone else.