This project is read-only.

How to log code events properly [Logger.Warning]?

Topics: Troubleshooting, Writing modules
Aug 3, 2012 at 1:31 AM

Hey All, I’m testing a site I’ve uploaded to a test server and was wondering how I keep logging events working, as in:

Logger.Warning(“some observation here”…);

So it continues to write to an orchard-debug-####.##.##.log file when I’ve disabled debug in web.config [as this is recommended in a live site situation, yes?].

Thanking you for your support, Kyd

Aug 6, 2012 at 12:33 AM I asking a really silly question?  What I'm getting at, is, how do you guys log events in your code on a live server? Thanks for any direction whatsoever, cheers Kyd

Aug 6, 2012 at 2:44 AM

Ok, for those newbies that may be in the same boat, you need to edit the Log4net.config; the help comments within that file is all you need "ALL". Thanks Kyd