Added: logging/site/trunk/docs/log4net/src/release/example-apps.html
URL:
http://svn.apache.org/viewvc/logging/site/trunk/docs/log4net/src/release/example-apps.html?view=auto&rev=559716
==============================================================================
--- logging/site/trunk/docs/log4net/src/release/example-apps.html (added)
+++ logging/site/trunk/docs/log4net/src/release/example-apps.html Wed Jul 25
23:41:40 2007
@@ -0,0 +1,651 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+
+
+
+
+
+
+
+
+
+<html>
+ <head>
+ <title>Apache log4net -
+ Apache log4net: Examples</title>
+ <style type="text/css" media="all">
+ @import url("../../css/maven-base.css");
+ @import url("../../css/maven-theme.css");
+ @import url("../../css/site.css");
+ </style>
+ <link rel="stylesheet" href="../../css/print.css" type="text/css"
media="print" />
+ <meta name="author" content="
+ Nicko Cadell" />
+ <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
+ </head>
+ <body class="composite">
+ <div id="banner">
+ <a href="http://logging.apache.org/" id="bannerLeft">
+
+ <img
src="../../images/ls-logo.jpg" alt="" />
+
+ </a>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="breadcrumbs">
+
+
+
+
+
+
+
+ <div class="xleft">
+ Last Published: 07/26/2007
+ |
+ <a href="http://www.apache.org/">Apache</a>
+ >
+
+ <a href="http://logging.apache.org/">Logging Services</a>
+ >
+
+ <a href="../../">log4net</a>
+ </div>
+ <div class="xright">
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ <div id="leftColumn">
+ <div id="navcolumn">
+
+
+
+
+
+
+
+ <h5>Get log4net</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../../download.html">Download</a>
+ </li>
+
+ <li class="none">
+ <a href="../../changes-report.html">Changes</a>
+ </li>
+
+ <li class="none">
+ <a href="../../license.html">License</a>
+ </li>
+ </ul>
+ <h5>About log4net</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../../index.html">What is log4net?</a>
+ </li>
+
+ <li class="none">
+ <a href="../../faq.html">FAQ</a>
+ </li>
+
+ <li class="none">
+ <a href="../../roadmap.html">Roadmap</a>
+ </li>
+ </ul>
+ <h5>Community</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../../mail-lists.html">Mailing Lists</a>
+ </li>
+
+ <li class="none">
+ <a href="../../issue-tracking.html">Issue Tracking</a>
+ </li>
+ </ul>
+ <h5>Development</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../../source-repository.html">Repository</a>
+ </li>
+
+ <li class="none">
+ <a href="../../integration.html">Continuous Integration</a>
+ </li>
+ </ul>
+ <h5>Documentation</h5>
+ <ul>
+
+ <li class="none">
+ <a href="../../release/manual/introduction.html">Introduction</a>
+ </li>
+ </ul>
+ <h5>Apache</h5>
+ <ul>
+
+ <li class="none">
+ <a href="http://www.apache.org">Home</a>
+ </li>
+
+ <li class="none">
+ <a
href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apache.org/foundation/thanks.html">Thanks</a>
+ </li>
+
+ <li class="none">
+ <a href="http://www.apachecon.com">Conferences</a>
+ </li>
+ </ul>
+ <a href="http://maven.apache.org/"
title="Built by Maven" id="poweredBy">
+ <img alt="Built by Maven"
src="../../images/logos/maven-feather.png"></img>
+ </a>
+
+
+
+
+
+
+
+ </div>
+ </div>
+ <div id="bodyColumn">
+ <div id="contentBox">
+
+
+
+
+ <meta name="keywords" content="log4net examples, log4net"></meta>
+
+ <head>
+ <script language="javascript">
+
+ </script>
+ </head>
+
+
+ <a name="log4net Examples"></a><div class="section"><h2>log4net
Examples</h2>
+
+ <sectionMenu name="Contents"></sectionMenu>
+
+ <a name="Overview"></a><div class="section"><h2>Overview</h2>
+ <p>
+ <strong>The following examples are only available in the
log4net release download, not
+ on-line. To obtain the examples <a
href="../downloads.html">download</a> one of the log4net releases.
+ </strong>
+ </p>
+ </div>
+
+ <a name="Building Examples"></a><div class="section"><h2>Building
Examples</h2>
+ <a name="Building An Example"></a><div
class="section"><h2>Building An Example</h2>
+ <p>
+ A single example can be build by running <span
class="code">nant</span> from
+ the example directory.
+ </p>
+ <p>
+ For example running <span class="code">nant</span> in
the
+ <span
class="code">examples\net\1.0\Tutorials\ConsoleApp\cs</span> directory
+ will build the C# version of the .NET 1.0 ConsoleApp
example.
+ </p>
+ <p>
+ <span class="code">nant</span> can be run in any
directory containing a
+ <span class="code">nant.build</span> file. The typical
behavior of the build file
+ is to build all projects under the current directory.
+ </p>
+ <p>
+ For example running <span class="code">nant</span> in
the
+ <span class="code">examples\net\1.1</span> directory
+ will build all the examples for the .NET 1.1 platform.
+ </p>
+ </div>
+
+ <a name="Building All Examples"></a><div
class="section"><h2>Building All Examples</h2>
+ <p>
+ To build all the examples either run <span
class="code">nant</span> in the
+ <span class="code">examples</span> directory or you
can specify the
+ <span class="code">compile-examples</span> target to
the main log4net nant build.
+ </p>
+ </div>
+
+ <a name="Visual Studio .NET"></a><div
class="section"><h2>Visual Studio .NET</h2>
+ <p>
+ There are Visual Studio .NET 2002 project files for
the .NET 1.0 framework.
+ The solution files for C# and VB are in the <a
href="../../examples/net/1.0">examples\net\1.0</a>
+ folder.
+ </p>
+ <p>
+ For the Managed C++ project there is a Visual Studio
.NET 2003 project file
+ in the <a
href="../../examples/net/1.1">examples\net\1.1</a> folder.
+ </p>
+ </div>
+ </div>
+
+ <a name="Examples"></a><div class="section"><h2>Examples</h2>
+
+ <a name="Tutorial - ConsoleApp"></a><div
class="section"><h2>Tutorial - ConsoleApp</h2>
+ <p>
+ ConsoleApp shows how to write a simple console
application that initializes
+ logging and logs various events.
+ </p>
+ <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>MONO 1.0</b>:
+ <a
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/cs">C#</a>,
+ <a
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/cpp">C++</a>,
+ <a
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>
+ </li>
+ <li>
+ <b>SSCLI 1.0</b>:
+ <a
href="../../examples/sscli/1.0/Tutorials/ConsoleApp/js">JScript.NET</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">ConsoleApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="Tutorial - WebApp"></a><div
class="section"><h2>Tutorial - WebApp</h2>
+
+ ConsoleApp shows how to write a simple ASP.NET web
application that initializes
+ logging and logs various events.
+
+
+ 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.
+
+ <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>
+ </li>
+ </ul>
+
+ To run this example you need to have an ASP.NET
container application to
+ host the web application, for example IIS. In IIS
create a new virtual
+ directory pointing to the WebApp src directory.
Configure IIS to recognize
+ this virtual directory as an application. Open up a
web browser, navigate to
+ the virtual directory and to the <span
class="code">WebForm1.aspx</span> page within it.
+
+ </div>
+
+ <a name="Remoting - RemotingClient"></a><div
class="section"><h2>Remoting - RemotingClient</h2>
+
+ The RemotingClient application is a simple console
application that configures
+ log4net with the RemotingAppender. This appender will
attempt to deliver the
+ logging events to a remoting listener. This example
should be run in conjunction
+ with the RemotingServer.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Remoting/RemotingClient/cs">C#</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">RemotingClient.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="Remoting - RemotingServer"></a><div
class="section"><h2>Remoting - RemotingServer</h2>
+ <p>
+ The RemotingServer application is a simple console
application that listens for
+ logging events from a remote RemotingAppender and then
logs them through the
+ local log4net instance. This example should be run in
conjunction
+ with the RemotingClient.
+ </p>
+ <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
href="../../examples/net/1.0/Remoting/RemotingServer/cs">C#</a>
+ </li>
+ </ul>
+
+ 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.
+
+ </div>
+
+ <a name="Repository - SimpleModule"></a><div
class="section"><h2>Repository - SimpleModule</h2>
+ <p>
+ The SimpleModule is a class library that is intended
to be used as part of
+ the SimpleApp example,
+ This class library uses the <span
class="code">log4net.Config.Repository</span>
+ attribute to create a separate configuration space
from other assemblies.
+ </p>
+ <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>MONO 1.0</b>:
+ <a
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>
+ </li>
+ <li>
+ <b>.NET 1.1</b>:
+ <a
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>
+ </li>
+ </ul>
+
+ This library is intended to be used as part of the
SimpleApp example.
+
+ </div>
+
+ <a name="Repository - SharedModule"></a><div
class="section"><h2>Repository - SharedModule</h2>
+
+ The SharedModule is a class library that is intended
to be used as part of
+ the SimpleApp example,
+ This class library uses log4net but does not attempt
to configure logging.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>MONO 1.0</b>:
+ <a
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>
+ </li>
+ <li>
+ <b>.NET 1.1</b>:
+ <a
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>
+ </li>
+ </ul>
+
+ This library is intended to be used as part of the
SimpleApp example.
+
+ </div>
+
+ <a name="Repository - SimpleApp"></a><div
class="section"><h2>Repository - SimpleApp</h2>
+
+ The SimpleApp example uses the SimpleModule and
SharedModule to demonstrate
+ the ways in which multiple assemblies within the same
process may be
+ separately configured.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>MONO 1.0</b>:
+ <a
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>
+ </li>
+ <li>
+ <b>.NET 1.1</b>:
+ <a
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>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">SimpleApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="Extensibility - EventIDLogApp"></a><div
class="section"><h2>Extensibility - EventIDLogApp</h2>
+
+ The EventIDLogApp example demonstrates using the
log4net.Ext.EventID extension.
+ The extension needs to be built separately from the
+ <span
class="code">extensions\net\1.0\log4net.Ext.EventID</span> directory.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Extensibility/EventIDLogApp/cs">C#</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">EventIDLogApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="Extensibility - TraceLogApp"></a><div
class="section"><h2>Extensibility - TraceLogApp</h2>
+
+ The TraceLogApp example demonstrates using the
log4net.Ext.Trace extension.
+ The extension needs to be built separately from the
+ <span
class="code">extensions\net\1.0\log4net.Ext.Trace</span> directory.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Extensibility/TraceLogApp/cs">C#</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">TraceLogApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="SampleAppenders"></a><div
class="section"><h2>SampleAppenders</h2>
+
+ This project includes the following example appenders.
+
+ <ul>
+ <li>
+ AsyncAppender
+ </li>
+ <li>
+ FastDbAppender
+ </li>
+ <li>
+ FireEventAppender
+ </li>
+ <li>
+ MessageBoxAppender
+ </li>
+ <li>
+ MessageObjectExpanderAppender
+ </li>
+ <li>
+ MsmqAppender
+ </li>
+ <li>
+ PatternFileAppender
+ </li>
+ <li>
+ SimpleSmtpAppender
+ </li>
+ </ul>
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Appenders/SampleAppendersApp/cs">C#</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">SampleAppendersApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="SampleLayouts"></a><div
class="section"><h2>SampleLayouts</h2>
+
+ This project includes the following example layouts.
+
+ <ul>
+ <li>
+ ForwardingLayout
+ </li>
+ <li>
+ LineWrappingLayout
+ </li>
+ </ul>
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Layouts/SampleLayoutsApp/cs">C#</a>
+ </li>
+ </ul>
+
+ To run this example execute <span
class="code">SampleLayoutsApp.exe</span> from the build output directory.
+
+ </div>
+
+ <a name="Performance - NotLogging"></a><div
class="section"><h2>Performance - NotLogging</h2>
+
+ The NotLogging example benchmarks the performance of
log4net logging statements in
+ user code in various scenarios including when logging
is disabled.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>MONO 1.0</b>:
+ <a
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>
+ </li>
+ </ul>
+
+
+ </div>
+
+ <a name="WmiAppender"></a><div
class="section"><h2>WmiAppender</h2>
+
+ The WmiAppender sample shows an example appender that
fires events through
+ Windows Management Instrumentation.
+
+
+ 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.
+
+ <ul>
+ <li>
+ <b>.NET 1.0</b>:
+ <a
href="../../examples/net/1.0/Appenders/WmiAppender/cs">C#</a>
+ </li>
+ </ul>
+
+
+ </div>
+
+ </div>
+
+ </div>
+
+
+ </div>
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ <div id="footer">
+ <div class="xright">©
+ 2007
+
+ Apache Software Foundation
+
+
+
+
+
+
+
+ </div>
+ <div class="clear">
+ <hr/>
+ </div>
+ </div>
+ </body>
+</html>
Propchange: logging/site/trunk/docs/log4net/src/release/example-apps.html
------------------------------------------------------------------------------
svn:mime-type = text/html