7 votes

Log4Net for Umbraco

** 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.

Quick start:

- 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:

_log.Debug("Logging initialised");

_log.Info("Logging initialised");

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

Archived files


Source code

Package owner

Darren Ferguson

Darren Ferguson

Darren has 3259 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Darren Ferguson
  • Contributors: Lee Kelleher
  • Created: 16/07/2010
  • Current version 1.0
  • License MIT
  • Downloads on Our: 1.5K

External resources