Proper implementation of NLog and Prism

Posted by WiT8litZ on Stack Overflow See other posts from Stack Overflow or by WiT8litZ
Published on 2010-05-14T09:51:40Z Indexed on 2010/05/14 9:54 UTC
Read the original article Hit count: 492

Filed under:
|
|
|
|

What would be the best way to implement NLog in my Prism / CAL WPF application. This might be an amateur question, I am a bit new to the whole Prism framework :)

I thought about putting the reference to the NLog dll in the Infrastructure module and make a wrapper singleton class e.g. MyLogger. My thinking was to be able to have the reference to 1 logger implementation somewhere in a central place that everything has reference to, and the only thing that I know of in Prism would be your Infrastructure module.

The obvious other way is to add a reference to NLog to each module but I think that would defeat the purpose of decoupling and all of that.

Any ideas would be most helpful

Regards

© Stack Overflow or respective owner

Related posts about prism

Related posts about prismv2