The Log4NetAdmin EPiServer module is built to support administration of logging using log4net, see
http://logging.apache.org/log4net/. The primary target group is EPiServer developers and technical administrators.
The module is freely available for your testing / usage. Note however that the module is unsupported and provided "as is". The module may be changed/discontinued or incorporated within the EPiServer core product without further notice.
How does it work?
After installing the module there will appear a Log4netAdmin entry under the Tools section. Here it's possible to configure which namespaces to log and which loglevel to use. It's also possible to read logfiles.
Installation
- Download the Log4NetAdmin.zip file
- Unzip the file into your EPiServer root folder.
This will add the following EPiServer directory:
/bin/LogAdmin.dll
/lang/Log4netAdmin.xml
/LogAdmin (sourcecode etc.)
How to use?
The module is configured and used under the Log4netAdmin entry under the Tools section. The page contains two tabs ErrorLogs and Settings for Log4netAdmin.
Log4netAdmin
This is where you configure where and what to log. The log directory must be a virtual directory. The selection of what to log is done by selecting namespaces and selecting a log level for the namespace. The assumption is that all logs have the same name as the namespace they exist in (this is the case in EPiServer). This implies that if you have own modules that you want to configure/log through the module you should follow this naming convention.
ErrorLogs
This is where you can read entries from generated logfiles.
Note:
You might consider securing the location path LogAdmin in your web.config file to avoid access to LogAdmin pages for none administrators.
Copyright (C) EPiServer AB
2010 All rights reserved.
This software is unsupported and provided "as is".
EPiServer AB is not to be held responsible in any way for any damage or loss of income and/or data due to the use of the software.