** Demo screencast coming soon ** Please vote for this package if you like it **
This package adds log4net to Umbraco. Post package install restart IIS and log4net is loaded every time Umbraco starts.
- Add a reference to log4net.dll to your Visual studio project.
- Define a logger in your class e.g.
public class MyClass
private static readonly ILog log = LogManager.GetLogger(typeof(MyClass));
- use the logger:
Log4net config is in /config/umbLog4net.config
Supplied configuration writes to your win temp directory in a file called umbraco.log which rotates every 1MB.
More details on log4net configuration: http://logging.apache.org/log4net/release/manual/configuration.html