Return-Path: Delivered-To: apmail-logging-general-archive@www.apache.org Received: (qmail 51614 invoked from network); 26 Jul 2007 06:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 06:43:11 -0000 Received: (qmail 36324 invoked by uid 500); 26 Jul 2007 06:43:04 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 36277 invoked by uid 500); 26 Jul 2007 06:43:04 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Logging General" List-Id: Delivered-To: mailing list general@logging.apache.org Received: (qmail 36130 invoked by uid 99); 26 Jul 2007 06:43:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 23:43:03 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 23:42:59 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id AD0E01A9831; Wed, 25 Jul 2007 23:42:16 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r559716 [13/20] - in /logging/site/trunk/docs/log4net: ./ css/ images/ images/logos/ release/ release/howto/ release/manual/ src/ src/release/ src/release/howto/ src/release/manual/ src/stylesheets/ stylesheets/ Date: Thu, 26 Jul 2007 06:41:52 -0000 To: general@logging.apache.org From: carnold@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070726064216.AD0E01A9831@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ + + + + + + + + + + + + + + Apache log4net - + Apache log4net: Examples + + + + + + + + +
+ +
+
+
+ + + + + + + + + + + +

log4net Examples

+ + + +

Overview

+

+ The following examples are only available in the log4net release download, not + on-line. To obtain the examples download one of the log4net releases. + +

+
+ +

Building Examples

+

Building An Example

+

+ A single example can be build by running nant from + the example directory. +

+

+ For example running nant in the + examples\net\1.0\Tutorials\ConsoleApp\cs directory + will build the C# version of the .NET 1.0 ConsoleApp example. +

+

+ nant can be run in any directory containing a + nant.build file. The typical behavior of the build file + is to build all projects under the current directory. +

+

+ For example running nant in the + examples\net\1.1 directory + will build all the examples for the .NET 1.1 platform. +

+
+ +

Building All Examples

+

+ To build all the examples either run nant in the + examples directory or you can specify the + compile-examples target to the main log4net nant build. +

+
+ +

Visual Studio .NET

+

+ There are Visual Studio .NET 2002 project files for the .NET 1.0 framework. + The solution files for C# and VB are in the examples\net\1.0 + folder. +

+

+ For the Managed C++ project there is a Visual Studio .NET 2003 project file + in the examples\net\1.1 folder. +

+
+
+ +

Examples

+ +

Tutorial - ConsoleApp

+

+ ConsoleApp shows how to write a simple console 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. +

+ + + To run this example execute ConsoleApp.exe from the build output directory. + +
+ +

Tutorial - WebApp

+ + 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. + +
    +
  • + .NET 1.0: + C#, + VB +
  • +
+ + 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 WebForm1.aspx page within it. + +
+ +

Remoting - RemotingClient

+ + 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute RemotingClient.exe from the build output directory. + +
+ +

Remoting - RemotingServer

+

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

+

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

+
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute RemotingServer.exe from the build output directory. + While this process is running execute the RemotingClient.exe program on + the same machine. The logging events from the client are transferred to the server. + +
+ +

Repository - SimpleModule

+

+ The SimpleModule is a class library that is intended to be used as part of + the SimpleApp example, + This class library uses the log4net.Config.Repository + attribute to create a separate configuration space from other assemblies. +

+

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

+
    +
  • + MONO 1.0: + C# +
  • +
  • + .NET 1.0: + C#, + VB +
  • +
  • + .NET 1.1: + JScript.NET +
  • +
  • + SSCLI 1.0: + C# +
  • +
+ + This library is intended to be used as part of the SimpleApp example. + +
+ +

Repository - SharedModule

+ + 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. + +
    +
  • + MONO 1.0: + C# +
  • +
  • + .NET 1.0: + C#, + VB +
  • +
  • + .NET 1.1: + JScript.NET +
  • +
  • + SSCLI 1.0: + C# +
  • +
+ + This library is intended to be used as part of the SimpleApp example. + +
+ +

Repository - SimpleApp

+ + 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. + +
    +
  • + MONO 1.0: + C# +
  • +
  • + .NET 1.0: + C#, + VB +
  • +
  • + .NET 1.1: + JScript.NET +
  • +
  • + SSCLI 1.0: + C# +
  • +
+ + To run this example execute SimpleApp.exe from the build output directory. + +
+ +

Extensibility - EventIDLogApp

+ + The EventIDLogApp example demonstrates using the log4net.Ext.EventID extension. + The extension needs to be built separately from the + extensions\net\1.0\log4net.Ext.EventID 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute EventIDLogApp.exe from the build output directory. + +
+ +

Extensibility - TraceLogApp

+ + The TraceLogApp example demonstrates using the log4net.Ext.Trace extension. + The extension needs to be built separately from the + extensions\net\1.0\log4net.Ext.Trace 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute TraceLogApp.exe from the build output directory. + +
+ +

SampleAppenders

+ + This project includes the following example appenders. + +
    +
  • + AsyncAppender +
  • +
  • + FastDbAppender +
  • +
  • + FireEventAppender +
  • +
  • + MessageBoxAppender +
  • +
  • + MessageObjectExpanderAppender +
  • +
  • + MsmqAppender +
  • +
  • + PatternFileAppender +
  • +
  • + SimpleSmtpAppender +
  • +
+ + 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute SampleAppendersApp.exe from the build output directory. + +
+ +

SampleLayouts

+ + This project includes the following example layouts. + +
    +
  • + ForwardingLayout +
  • +
  • + LineWrappingLayout +
  • +
+ + 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + To run this example execute SampleLayoutsApp.exe from the build output directory. + +
+ +

Performance - NotLogging

+ + 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. + +
    +
  • + MONO 1.0: + C# +
  • +
  • + .NET 1.0: + C#, + VB +
  • +
+ + +
+ +

WmiAppender

+ + 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. + +
    +
  • + .NET 1.0: + C# +
  • +
+ + +
+ +
+ +
+ + +
+
+
+
+
+ + + Propchange: logging/site/trunk/docs/log4net/src/release/example-apps.html ------------------------------------------------------------------------------ svn:mime-type = text/html