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

Documentation

Source code

Project owner

Darren Ferguson

Darren Ferguson

Darren has 3202 karma points

Project Compatibility

This project is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (0%)
6.0.x (untested)

You must login before you can report on package compatibility.

Project Information

  • Project owner: Darren Ferguson
  • Contributors: Lee Kelleher
  • Created: 16/07/2010
  • Current version 1.0
  • License MIT
  • Downloads: 1278

External resources