Author: nicko
Date: Sun Oct 16 16:36:34 2005
New Revision: 322528
URL: http://svn.apache.org/viewcvs?rev=322528&view=rev
Log:
Rebuilt all doc html files. Some may not have been rebuilt because they had an
up to date last mod time but had not actually been rebuilt.
Removed:
logging/log4net/trunk/doc/release/manual/faq.html
Modified:
logging/log4net/trunk/doc/downloads.html
logging/log4net/trunk/doc/history.html
logging/log4net/trunk/doc/license.html
logging/log4net/trunk/doc/release/building.html
logging/log4net/trunk/doc/release/config-examples.html
logging/log4net/trunk/doc/release/example-apps.html
logging/log4net/trunk/doc/release/faq.html
logging/log4net/trunk/doc/release/features.html
logging/log4net/trunk/doc/release/framework-support.html
logging/log4net/trunk/doc/release/howto/chainsaw.html
logging/log4net/trunk/doc/release/howto/index.html
logging/log4net/trunk/doc/release/manual/configuration.html
logging/log4net/trunk/doc/release/manual/contexts.html
logging/log4net/trunk/doc/release/manual/internals.html
logging/log4net/trunk/doc/release/manual/introduction.html
logging/log4net/trunk/doc/release/manual/plugins.html
logging/log4net/trunk/doc/release/manual/repositories.html
logging/log4net/trunk/doc/release/release-notes.html
logging/log4net/trunk/doc/roadmap.html
logging/log4net/trunk/doc/support.html
Modified: logging/log4net/trunk/doc/downloads.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/downloads.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/downloads.html (original)
+++ logging/log4net/trunk/doc/downloads.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="./css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Downloads</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/history.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/history.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/history.html (original)
+++ logging/log4net/trunk/doc/history.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="./css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Project History</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/license.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/license.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/license.html (original)
+++ logging/log4net/trunk/doc/license.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="./css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net License</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/building.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/building.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/building.html (original)
+++ logging/log4net/trunk/doc/release/building.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - Building log4net</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
@@ -142,7 +147,7 @@
<p>
The log4net distribution is built using
the NAnt tool.
NAnt version 0.85 is required to build
log4net, it is
- available from <a
href="http://nat.sourceforge.net">nant.sourceforge.net</a>.
+ available from <a
href="http://nant.sourceforge.net">nant.sourceforge.net</a>.
</p>
<p>
To support building log4net for the
SSCLI framework the NAnt configuration
Modified: logging/log4net/trunk/doc/release/config-examples.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/config-examples.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/config-examples.html (original)
+++ logging/log4net/trunk/doc/release/config-examples.html Sun Oct 16 16:36:34
2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Config Examples</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/example-apps.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/example-apps.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/example-apps.html (original)
+++ logging/log4net/trunk/doc/release/example-apps.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,45 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Examples</title>
- </head>
+
+
+ <script language="javascript">
+<!--
+function getElementsByClass(node,searchClass,tag) {
+var classElements = new Array();
+var els = node.getElementsByTagName(tag);
+var elsLen = els.length;
+var pattern = new RegExp("\\b"+searchClass+"\\b");
+for (i = 0, j = 0; i < elsLen; i++) {
+if ( pattern.test(els[i].className) ) {
+classElements[j] = els[i];
+j++;
+}
+}
+return classElements;
+}
+function BlockLocalOnlyLinks()
+{
+if (window.location.protocol!="file:")
+{
+var links = getElementsByClass(document,"localOnly","a");
+for(var i=0; i<links.length; i++)
+{
+links[i].href = "#overview";
+}
+}
+}
+-->
+ </script>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ onload="BlockLocalOnlyLinks()"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
@@ -116,6 +152,9 @@
<a
href="#sampleappenders">SampleAppenders</a><br/>
<div class="i1">
</div>
+ <a
href="#samplelayouts">SampleLayouts</a><br/>
+ <div class="i1">
+
</div>
<a
href="#perf-notlogging">Performance - NotLogging</a><br/>
<div class="i1">
</div>
@@ -165,7 +204,7 @@
<div class="i1">
<p>
There are Visual Studio .NET
2002 project files for the .NET 1.0 framework.
- The solution files for C++, C#
and VB are in the <a href="../../examples/net/1.0">examples\net\1.0</a>
+ The solution files for C++, C#
and VB are in the <a class="localOnly"
href="../../examples/net/1.0">examples\net\1.0</a>
folder.
</p>
</div>
@@ -186,30 +225,30 @@
<ul>
<li>
<b>MONO 1.0</b>:
- <a
href="../../examples/mono/1.0/Tutorials/ConsoleApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/mono/1.0/Tutorials/ConsoleApp/cs">C#</a>
</li>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Tutorials/ConsoleApp/cpp">C++</a>,
- <a
href="../../examples/net/1.0/Tutorials/ConsoleApp/cs">C#</a>,
- <a
href="../../examples/net/1.0/Tutorials/ConsoleApp/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Tutorials/ConsoleApp/cpp">C++</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Tutorials/ConsoleApp/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Tutorials/ConsoleApp/vb">VB</a>
</li>
<li>
<b>.NET 1.1</b>:
- <a
href="../../examples/net/1.1/Tutorials/ConsoleApp/js">JavaScript</a>
+ <a class="localOnly"
href="../../examples/net/1.1/Tutorials/ConsoleApp/js">JScript.NET</a>
</li>
<li>
<b>.NET Compact
Framework 1.0</b>:
- <a
href="../../examples/netcf/1.0/Tutorials/ConsoleApp/cs">C#</a>,
- <a
href="../../examples/netcf/1.0/Tutorials/ConsoleApp/vb">VB</a>
+ <a class="localOnly"
href="../../examples/netcf/1.0/Tutorials/ConsoleApp/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/netcf/1.0/Tutorials/ConsoleApp/vb">VB</a>
</li>
<li>
<b>SSCLI 1.0</b>:
- <a
href="../../examples/sscli/1.0/Tutorials/ConsoleApp/js">JavaScript</a>
+ <a class="localOnly"
href="../../examples/sscli/1.0/Tutorials/ConsoleApp/js">JScript.NET</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">ConsoleApp.exe</span> from the build output directory.
+ To run this example execute
<span class="code">ConsoleApp.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="webapp"></a>Tutorial - WebApp</h3>
@@ -226,8 +265,8 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Tutorials/WebApp/cs">C#</a>,
- <a
href="../../examples/net/1.0/Tutorials/WebApp/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Tutorials/WebApp/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Tutorials/WebApp/vb">VB</a>
</li>
</ul>
<p>
@@ -254,11 +293,11 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Remoting/RemotingClient/cs">C#</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Remoting/RemotingClient/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">RemotingClient.exe</span> from the build output directory.
+ To run this example execute
<span class="code">RemotingClient.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="remotingserver"></a>Remoting - RemotingServer</h3>
@@ -277,11 +316,11 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Remoting/RemotingServer/cs">C#</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Remoting/RemotingServer/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">RemotingServer.exe</span> from the build output directory.
+ To run this example execute
<span class="code">RemotingServer.exe</span> from the build output directory.
While this process is running
execute the <span class="code">RemotingClient.exe</span> program on
the same machine. The logging
events from the client are transferred to the server.
</p>
@@ -302,20 +341,20 @@
<ul>
<li>
<b>MONO 1.0</b>:
- <a
href="../../examples/mono/1.0/Repository/SimpleModule/cs">C#</a>
+ <a class="localOnly"
href="../../examples/mono/1.0/Repository/SimpleModule/cs">C#</a>
</li>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Repository/SimpleModule/cs">C#</a>,
- <a
href="../../examples/net/1.0/Repository/SimpleModule/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SimpleModule/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SimpleModule/vb">VB</a>
</li>
<li>
<b>.NET 1.1</b>:
- <a
href="../../examples/net/1.1/Repository/SimpleModule/js">JavaScript</a>
+ <a class="localOnly"
href="../../examples/net/1.1/Repository/SimpleModule/js">JScript.NET</a>
</li>
<li>
<b>SSCLI 1.0</b>:
- <a
href="../../examples/sscli/1.0/Repository/SimpleModule/cs">C#</a>
+ <a class="localOnly"
href="../../examples/sscli/1.0/Repository/SimpleModule/cs">C#</a>
</li>
</ul>
<p>
@@ -337,20 +376,20 @@
<ul>
<li>
<b>MONO 1.0</b>:
- <a
href="../../examples/mono/1.0/Repository/SharedModule/cs">C#</a>
+ <a class="localOnly"
href="../../examples/mono/1.0/Repository/SharedModule/cs">C#</a>
</li>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Repository/SharedModule/cs">C#</a>,
- <a
href="../../examples/net/1.0/Repository/SharedModule/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SharedModule/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SharedModule/vb">VB</a>
</li>
<li>
<b>.NET 1.1</b>:
- <a
href="../../examples/net/1.1/Repository/SharedModule/js">JavaScript</a>
+ <a class="localOnly"
href="../../examples/net/1.1/Repository/SharedModule/js">JScript.NET</a>
</li>
<li>
<b>SSCLI 1.0</b>:
- <a
href="../../examples/sscli/1.0/Repository/SharedModule/cs">C#</a>
+ <a class="localOnly"
href="../../examples/sscli/1.0/Repository/SharedModule/cs">C#</a>
</li>
</ul>
<p>
@@ -372,24 +411,24 @@
<ul>
<li>
<b>MONO 1.0</b>:
- <a
href="../../examples/mono/1.0/Repository/SimpleApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/mono/1.0/Repository/SimpleApp/cs">C#</a>
</li>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Repository/SimpleApp/cs">C#</a>,
- <a
href="../../examples/net/1.0/Repository/SimpleApp/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SimpleApp/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Repository/SimpleApp/vb">VB</a>
</li>
<li>
<b>.NET 1.1</b>:
- <a
href="../../examples/net/1.1/Repository/SimpleApp/js">JavaScript</a>
+ <a class="localOnly"
href="../../examples/net/1.1/Repository/SimpleApp/js">JScript.NET</a>
</li>
<li>
<b>SSCLI 1.0</b>:
- <a
href="../../examples/sscli/1.0/Repository/SimpleApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/sscli/1.0/Repository/SimpleApp/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">SimpleApp.exe</span> from the build output directory.
+ To run this example execute
<span class="code">SimpleApp.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="eventidlogapp"></a>Extensibility - EventIDLogApp</h3>
@@ -407,11 +446,11 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Extensibility/EventIDLogApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Extensibility/EventIDLogApp/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">EventIDLogApp.exe</span> from the build output directory.
+ To run this example execute
<span class="code">EventIDLogApp.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="tracelogapp"></a>Extensibility - TraceLogApp</h3>
@@ -429,11 +468,11 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Extensibility/TraceLogApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Extensibility/TraceLogApp/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">TraceLogApp.exe</span> from the build output directory.
+ To run this example execute
<span class="code">TraceLogApp.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="sampleappenders"></a>SampleAppenders</h3>
@@ -443,6 +482,12 @@
</p>
<ul>
<li>
+ AsyncAppender
+ </li>
+ <li>
+ FastDbAppender
+ </li>
+ <li>
FireEventAppender
</li>
<li>
@@ -452,6 +497,12 @@
MessageObjectExpanderAppender
</li>
<li>
+ MsmqAppender
+ </li>
+ <li>
+ PatternFileAppender
+ </li>
+ <li>
SimpleSmtpAppender
</li>
</ul>
@@ -463,11 +514,39 @@
<ul>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Appenders/SampleAppendersApp/cs">C#</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Appenders/SampleAppendersApp/cs">C#</a>
+ </li>
+ </ul>
+ <p>
+ To run this example execute
<span class="code">SampleAppendersApp.exe</span> from the build output
directory.
+ </p>
+ </div>
+ <h3><a
id="samplelayouts"></a>SampleLayouts</h3>
+ <div class="i1">
+ <p>
+ This project includes the
following example layouts.
+ </p>
+ <ul>
+ <li>
+ ForwardingLayout
+ </li>
+ <li>
+ LineWrappingLayout
+ </li>
+ </ul>
+ <p>
+ This example is available for
the following platforms and languages. If a version
+ is not available for your
chosen platform and language combination then select the
+ nearest platform for the
appropriate language.
+ </p>
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a class="localOnly"
href="../../examples/net/1.0/Layouts/SampleLayoutsApp/cs">C#</a>
</li>
</ul>
<p>
- To run this example execute the
<span class="code">SampleAppendersApp.exe</span> from the build output
directory.
+ To run this example execute
<span class="code">SampleLayoutsApp.exe</span> from the build output directory.
</p>
</div>
<h3><a
id="perf-notlogging"></a>Performance - NotLogging</h3>
@@ -484,12 +563,12 @@
<ul>
<li>
<b>MONO 1.0</b>:
- <a
href="../../examples/mono/1.0/Performance/NotLogging/cs">C#</a>
+ <a class="localOnly"
href="../../examples/mono/1.0/Performance/NotLogging/cs">C#</a>
</li>
<li>
<b>.NET 1.0</b>:
- <a
href="../../examples/net/1.0/Performance/NotLogging/cs">C#</a>,
- <a
href="../../examples/net/1.0/Performance/NotLogging/vb">VB</a>
+ <a class="localOnly"
href="../../examples/net/1.0/Performance/NotLogging/cs">C#</a>,
+ <a class="localOnly"
href="../../examples/net/1.0/Performance/NotLogging/vb">VB</a>
</li>
</ul>
<p>
Modified: logging/log4net/trunk/doc/release/faq.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/faq.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/faq.html (original)
+++ logging/log4net/trunk/doc/release/faq.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Frequently Asked
Questions</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
@@ -134,6 +139,12 @@
<a
href="#assembly-public-key">How do I get the Public Key for an
assembly?</a><br/>
<div class="i1">
</div>
+ <a
href="#layout-header-xml-newlines">How do I insert newlines into the layout
header?</a><br/>
+ <div class="i1">
+ </div>
+ <a
href="#pattern-string">How do I use a pattern to set the value of a string
property?</a><br/>
+ <div class="i1">
+ </div>
</div>
<a
href="#implementing">Implementing Logging</a><br/>
<div class="i1">
@@ -178,10 +189,10 @@
<div class="i1">
<a href="#internalDebug">How do I
enable log4net internal debugging?</a><br/>
<div class="i1">
- </div>
+
</div>
<a
href="#trouble-EventLog">Why doesn't the EventLogAppender work?</a><br/>
<div class="i1">
-
</div>
+
</div>
<a
href="#trouble-file-perm">Why can't I log to a FileAppender from a web
application?</a><br/>
<div class="i1">
</div>
@@ -572,6 +583,48 @@
</p>
</div>
<p><a href="#top">Back to
Top</a></p>
+ <h3><a
id="layout-header-xml-newlines"></a>How do I insert newlines into the layout
header?</h3>
+ <div class="i1">
+ <p>
+ Newlines in the config file
need to be escaped using an XML numeric character reference.
+ The sequence that represents a
CR LF is &#13; &#10;. The following example adds
+ a header and footer to the
output each followed by a newline.
+ </p>
+
+ <div class="syntax"><pre class="code">
+<layout type="log4net.Layout.PatternLayout">
+ <header value="[Header]&#13;&#10;" />
+ <footer value="[Footer]&#13;&#10;" />
+ <conversionPattern value="%date [%thread] %-5level %logger -
%message%newline" />
+</layout></pre></div>
+
+ </div>
+ <p><a href="#top">Back to
Top</a></p>
+ <h3><a
id="pattern-string"></a>How do I use a pattern to set the value of a string
property?</h3>
+ <div class="i1">
+ <p>
+ Log4net supports a pattern
syntax for setting string properties similar to the
+ <span
class="code">PatternLayout</span> used to format the output messages.
+ This pattern syntax can be used
by specifying <span class="code">type="log4net.Util.PatternString"</span>
+ on the string property in the
config file. This tells the config parser to pass the
+ value to the <span
class="code">PatternString</span> type before converting the result
+ to a string. For details on the
patterns supported see the <a href="sdk/log4net.Util.PatternString.html">
+ PatternString SDK Reference</a>.
+ </p>
+ <p>
+ The following example sets the
file name for a <span class="code">FileAppender</span> to include the
+ current process id by
specifying the <span class="code">%processid</span> pattern in the
+ <span class="code">File</span>
property.
+ </p>
+
+ <div class="syntax"><pre class="code">
+<appender name="LogFileAppender"
type="log4net.Appender.FileAppender">
+ <file type="log4net.Util.PatternString"
value="log-file-[%processid].txt" />
+ <layout type="log4net.Layout.PatternLayout"
value="%date [%thread] %-5level %logger - %message%newline" />
+</appender></pre></div>
+
+ </div>
+ <p><a href="#top">Back to
Top</a></p>
</div>
<h2><a
id="implementing"></a>Implementing Logging</h2>
<div class="i1">
@@ -891,22 +944,14 @@
<h3><a id="internalDebug"></a>How do I
enable log4net internal debugging?</h3>
<div class="i1">
<p>
- There are several different
ways to enable internal debugging in log4net.
- These different methods are
listed below. The preferred method is to specify
+ There are 2 different ways to
enable internal debugging in log4net.
+ These are listed below. The
preferred method is to specify
the <span
class="code">log4net.Internal.Debug</span> option in the application's
config file.
</p>
<ul>
<li>
<p>
- To enable
log4net's internal debug programmatically you need
- to set the
<span class="code">log4net.Util.LogLog.InternalDebugging</span>
- property to
<span class="code">true</span>. Obviously the sooner this
- is set the more
debug will be produced.
- </p>
- </li>
- <li>
- <p>
Internal
debugging can also be enabled by setting a value in the application's
configuration
file (not the log4net configuration file, unless the log4net config
data is
embedded in the application's config file). The <span
class="code">log4net.Internal.Debug</span>
@@ -927,22 +972,10 @@
</li>
<li>
<p>
- To enable
internal debugging from a configuration file, the
- <span
class="code">debug</span> attribute on the log4net
- configuration
element can be set to the value <span class="code">true</span>.
- For example:
- </p>
- <div
class="syntax"><pre class="code">
-<log4net debug="true">
-
- ... configuration ...
-
-</log4net></pre></div>
- <p>
- Using this
method does require that your configuration file is located
- and loaded,
otherwise the attribute will not be read. If you need to
- debug the
process of locating the configuration file then use one of the other
- methods for
enabling debugging.
+ To enable
log4net's internal debug programmatically you need
+ to set the
<span class="code">log4net.Util.LogLog.InternalDebugging</span>
+ property to
<span class="code">true</span>. Obviously the sooner this
+ is set the more
debug will be produced.
</p>
</li>
</ul>
@@ -959,6 +992,32 @@
<a
href="http://www.sysinternals.com">http://www.sysinternals.com</a>
may be used to capture these
messages.
</p>
+ <p>
+ As log4net internal debug
messages are written to the <span class="code">System.Diagnostics.Trace</span>
+ system it is possible to
redirect those messages to a local file. You can define
+ a trace listener by adding the
following to your application's .config file:
+ </p>
+ <div class="syntax"><pre
class="code">
+<configuration>
+ ...
+
+ <system.diagnostics>
+ <trace autoflush="true">
+ <listeners>
+ <add
+ name="textWriterTraceListener"
+
type="System.Diagnostics.TextWriterTraceListener"
+ initializeData="C:\tmp\log4net.txt"
/>
+ </listeners>
+ </trace>
+ </system.diagnostics>
+
+ ...
+</configuration></pre></div>
+ <p>
+ Make sure that the process
running your application has permission
+ to write to this file.
+ </p>
</div>
<p><a href="#top">Back to
Top</a></p>
<h3><a
id="trouble-EventLog"></a>Why doesn't the EventLogAppender work?</h3>
@@ -984,7 +1043,8 @@
<li>
<p>
Make the ASPNET
user a member of the Administrators group. This will work because the
- user will then
have the required permissions. This is not recommended for production use.
+ user will then
have the required permissions. This is <strong>not recommended</strong>
+ for production
use.
</p>
</li>
<li>
@@ -997,6 +1057,12 @@
</p>
</li>
</ol>
+ <p>
+ There is a Microsoft Knowledge
Base article that covers this issue and how to resolve
+ it. <a
href="http://support.microsoft.com/default.aspx?scid=kb;en-us;329291">
+ PRB: "Requested
Registry Access Is Not Allowed" Error Message When ASP.NET
+ Application Tries to
Write New EventSource in the EventLog</a>.
+ </p>
</div>
<p><a href="#top">Back to
Top</a></p>
<h3><a
id="trouble-file-perm"></a>Why can't I log to a FileAppender from a web
application?</h3>
@@ -1058,7 +1124,7 @@
<h3><a
id="vsnet-add-reference"></a>How do I make log4net appear in the Visual Studio
Add References dialog?</h3>
<div class="i1">
<p>
- There is a good discussion of
this topic on Robert GcLaws blog:
+ There is a good discussion of
this topic on Robert McLaws blog:
<a
href="http://weblogs.asp.net/rmclaws/archive/2003/11/15/37743.aspx">Building a
Better Server Control Experience, Part 2</a>.
</p>
</div>
Modified: logging/log4net/trunk/doc/release/features.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/features.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/features.html (original)
+++ logging/log4net/trunk/doc/release/features.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Features</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/framework-support.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/framework-support.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/framework-support.html (original)
+++ logging/log4net/trunk/doc/release/framework-support.html Sun Oct 16
16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Supported Frameworks</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/howto/chainsaw.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/howto/chainsaw.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/howto/chainsaw.html (original)
+++ logging/log4net/trunk/doc/release/howto/chainsaw.html Sun Oct 16 16:36:34
2005
@@ -44,9 +44,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - How To view logging events using Apache log4j
Chainsaw</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/howto/index.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/howto/index.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/howto/index.html (original)
+++ logging/log4net/trunk/doc/release/howto/index.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net How Tos</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/configuration.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/configuration.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/configuration.html (original)
+++ logging/log4net/trunk/doc/release/manual/configuration.html Sun Oct 16
16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Configuration</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/contexts.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/contexts.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/contexts.html (original)
+++ logging/log4net/trunk/doc/release/manual/contexts.html Sun Oct 16 16:36:34
2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Contexts</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/internals.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/internals.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/internals.html (original)
+++ logging/log4net/trunk/doc/release/manual/internals.html Sun Oct 16 16:36:34
2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Internals</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/introduction.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/introduction.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/introduction.html (original)
+++ logging/log4net/trunk/doc/release/manual/introduction.html Sun Oct 16
16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Introduction</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/plugins.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/plugins.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/plugins.html (original)
+++ logging/log4net/trunk/doc/release/manual/plugins.html Sun Oct 16 16:36:34
2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Plugins</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/manual/repositories.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/manual/repositories.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/manual/repositories.html (original)
+++ logging/log4net/trunk/doc/release/manual/repositories.html Sun Oct 16
16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="../../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Manual - Repositories</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/release/release-notes.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/release/release-notes.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/release/release-notes.html (original)
+++ logging/log4net/trunk/doc/release/release-notes.html Sun Oct 16 16:36:34
2005
@@ -42,9 +42,14 @@
<link
href="../css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Release Notes</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/roadmap.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/roadmap.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/roadmap.html (original)
+++ logging/log4net/trunk/doc/roadmap.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="./css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Development Roadmap</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>
Modified: logging/log4net/trunk/doc/support.html
URL:
http://svn.apache.org/viewcvs/logging/log4net/trunk/doc/support.html?rev=322528&r1=322527&r2=322528&view=diff
==============================================================================
--- logging/log4net/trunk/doc/support.html (original)
+++ logging/log4net/trunk/doc/support.html Sun Oct 16 16:36:34 2005
@@ -42,9 +42,14 @@
<link
href="./css/style.css" rel="stylesheet" type="text/css"/>
<title>log4net - log4net Support</title>
- </head>
+
+ </head>
- <body bgcolor="#ffffff" text="#000000" link="#525D76">
+ <body
+ bgcolor="#ffffff"
+ text="#000000"
+ link="#525D76"
+ >
<!-- START Header table -->
<table class="banner" border="0">
<tr>