This project is read-only.

How to use Orchard log?

Topics: Core, General
May 4, 2012 at 11:35 AM

In my own module I want to use a Orchard log.What steps I will do?Thanks!

May 4, 2012 at 4:06 PM

In your class, add a property like this:

public ILogger Logger { get; set; }

in the constructor add this:

Logger = NullLogger.Instance;

And use it in your class. You can find a ton of samples like this one by searching for "Logger"