Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
backported last-modified-date
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowalski committed Jul 10, 2006
1 parent 55f11d6 commit fd6bd9f
Show file tree
Hide file tree
Showing 34 changed files with 177 additions and 1 deletion.
1 change: 1 addition & 0 deletions web/blog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<content lang="en" id="blog">
<h1>Blog</h1>
<p>For my blog where I'll be talking about NLog and <a href="http://www.sooda.org/">Sooda</a> click <a href="http://blog.jkowalski.net/">here</a>.</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/bug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<content lang="en" id="support" subid="bug">
<h1>Report NLog Bug</h1>
<p>NLog uses TRAC for bug tracking and project management. The interface can be found <a href="http://trac.sav.net/nlog">here.</a></p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/capi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@
The C/C++ API as-is is meant primarily to be wrapped by your own high-level logging API (every programmer has one, hasn't he?).
An example of such an API implemented as C++ class is provided in <code>src/NLogC/NLogger.h</code>.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/comapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
</p>

<code lang="JScript" src="examples/web/test.js" />
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,6 @@
</nlog>
]]>
</code>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/documentation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
<li><link href="howto_optimize_performance">How to optimize logging performance</link></li>
<li><link href="howto_troubleshoot">How to troubleshoot your logging problems</link></li>
</ul>
<last-changed-date>$LastChangedDate: 2006-07-10 11:32:55 +0200 (Pn, 10 lip 2006) $</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/download.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@
<p>
To build NLog using NAnt, just type <code>nant</code> at the command prompt. To rebuild NLog using VS.NET, open the solution file (<code>NLog.sln</code>) and run <code>Build|Rebuild Solution</code>.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/faq.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@
</code>
</faq-answer>
</faq>
<last-changed-date>$LastChangedDate: 2006-07-10 11:32:55 +0200 (Pn, 10 lip 2006) $</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/helpindex.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
<p>
The logging API is modelled after log4net with some extensions that help it achieve great speed as described <link href="netapi">here</link>.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/howto.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
<li><link href="howto_optimize_performance">How to optimize logging performance</link></li>
<li><link href="howto_troubleshoot">How to troubleshoot your logging problems</link></li>
</ol>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/howto_optimize_performance.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@
</p>
<code lang="C#" src="examples/web/Performance.cs" />
<p style="class: red">TODO: add more tips here</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/howto_troubleshoot.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@

<h4>Enabling internal logging programmatically</h4>
<p>TO BE WRITTEN</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/howto_write_condition_function.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<p>
To be written.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/howto_write_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@
</p>

<code lang="C#" src="examples/web/AddFilter.cs" />
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/howto_write_layout_renderer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,6 @@ you can use integer, string, datetime, boolean parameters.
</p>

<code lang="C#" src="examples/web/AddLayoutRenderer.cs" />
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/howto_write_target.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ you can use integer, string, datetime, boolean parameters.
</p>

<code lang="C#" src="examples/web/AddTarget.cs" />
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/introduction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
<li>Even more speed improvements in the non-logging area.</li>
</ul>
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
129 changes: 129 additions & 0 deletions web/layouts.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="windows-1250" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="style.xsl" />

<xsl:param name="l_name" />

<xsl:template match="*" mode="content">
<xsl:if test="not($l_name)">
<h1>Layouts</h1>
<p>
The following layouts are available.
</p>
<div class="noborder">
<table class="listtable">
<xsl:call-template name="supportmatrixheader" />
<xsl:apply-templates select="//class[attribute/@name='NLog.LayoutAttribute']" mode="list">
<xsl:sort select="../../@name" />
<xsl:sort select="attribute[@name='NLog.LayoutAttribute']/property[@name='Name']/@value" />
</xsl:apply-templates>
</table>
</div>
</xsl:if>
<xsl:if test="$l_name">
<xsl:apply-templates select="//class[attribute/@name='NLog.LayoutAttribute' and attribute/property[@name='Name']/@value=$l_name]" mode="details">
<xsl:sort select="../../@name" />
<xsl:sort select="attribute[@name='NLog.LayoutAttribute']/property[@name='Name']/@value" />
</xsl:apply-templates>
</xsl:if>
</xsl:template>

<xsl:template match="class" mode="list">
<xsl:variable name="type_tag" select="attribute[@name='NLog.LayoutAttribute']/property[@name='Name']/@value" />
<tr>
<td class="name"><a href="layout.{$type_tag}.html"><xsl:value-of select="$type_tag" /></a></td>
<td class="description"><xsl:apply-templates select="documentation/summary" /></td>
<xsl:call-template name="supportmatrixvalues" />
</tr>
</xsl:template>

<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
</xsl:copy>
</xsl:template>

<xsl:template match="summary">
<xsl:apply-templates />
</xsl:template>

<xsl:template match="class" mode="details">
<xsl:variable name="type_tag" select="attribute[@name='NLog.LayoutAttribute']/property[@name='Name']/@value" />
<xsl:variable name="ignoresPadding" select="attribute[@name='NLog.LayoutAttribute']/property[@name='IgnoresPadding']/@value" />
<h3>${<xsl:value-of select="$type_tag" />} Layout Renderer</h3>
<hr size="1" />
<xsl:apply-templates select="documentation/summary" /><p/>
<xsl:call-template name="detailssupportmatrix" />
<xsl:if test="property[not(@declaringType='NLog.Layout')] or not($ignoresPadding='True')">
<h4>Parameters:</h4>
<table class="paramtable">
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<xsl:apply-templates select="property" mode="parameter">
<xsl:sort select="count(attribute[@name='NLog.Config.RequiredParameterAttribute'])" order="descending" />
<xsl:sort select="@name" />
</xsl:apply-templates>
</table>
</xsl:if>
<xsl:if test="documentation/remarks">
<h4>Remarks:</h4>
<xsl:apply-templates select="documentation/remarks" />
</xsl:if>
<xsl:if test="documentation/example">
<h4>Example:</h4>
<xsl:apply-templates select="documentation/example" />
</xsl:if>
<hr size="1" />
<a href="layouts.html">Back to the layout list.</a>
</xsl:template>

<xsl:template match="property[@set='false']" mode="parameter">
<!-- ignore -->
</xsl:template>

<xsl:template match="property[@name='Name']" mode="parameter">
<!-- ignore -->
</xsl:template>

<xsl:template match="property[@name='Type']" mode="parameter">
<!-- ignore -->
</xsl:template>

<xsl:template match="property[@type='NLog.Layout']" mode="parameter">
<!-- ignore -->
</xsl:template>

<xsl:template match="property[@type='NLog.ILayout']" mode="parameter">
<!-- ignore -->
</xsl:template>

<xsl:template match="property" mode="parameter">
<xsl:call-template name="parameter_info" />
</xsl:template>

<xsl:template match="property[attribute/@name='NLog.Config.ArrayParameterAttribute']" mode="parameter2">
<xsl:variable name="itemtype" select="attribute[@name='NLog.Config.ArrayParameterAttribute']/property[@name='ElementType']/@value" />
<br/>&lt;<xsl:value-of select="@name" />&gt;<br/>
<xsl:value-of select="$itemtype" />
<xsl:apply-templates select="//class[@name='$itemtype']" mode="parameter" />
&lt;/<xsl:value-of select="@name" />&gt;
</xsl:template>

<xsl:template match="property" mode="parameter2">
</xsl:template>

<xsl:template match="c">
<code><xsl:apply-templates /></code>
</xsl:template>

<xsl:template match="code">
<code><pre class="example"><xsl:apply-templates /></pre></code>
</xsl:template>

<xsl:template match="see">
<code><xsl:value-of select="@cref" /></code>
</xsl:template>
</xsl:stylesheet>
1 change: 1 addition & 0 deletions web/links.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<li><a href="http://logging.apache.org/log4net/">log4net</a> library.</li>
<li>My <a href="http://blog.jkowalski.net/">blog</a> where I'm writing about NLog and <a href="http://www.sooda.org/">Sooda</a>.</li>
</ol>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/mailinglists.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<li><a href="http://lists.sourceforge.net/lists/listinfo/nlog-list">nlog-list@lists.sourceforge.net</a> - General English discussion</li>
<li><a href="http://lists.sourceforge.net/lists/listinfo/nlog-commits">nlog-commits@lists.sourceforge.net</a> - SVN commits</li>
</ul>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/netapi.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@
<li><a href="help/NLog.Logger.IsFatalEnabled.html">IsFatalEnabled</a> - Determines if logging is enabled for the Fatal level.</li>
</ul>
<p>Full list of members of the Logger class can be found <a href="help/NLog.LoggerMembers.html">here</a>.</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/news.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
</tr>
<tr><td class="newsdate">2005-03-08</td><td class="newstext">NLog 0.5 beta 1 has been released!. This work is based on 6 months of testing and should be production-ready. Download it <a href="http://sourceforge.net/project/showfiles.php?group_id=116456">here</a>.</td></tr>
</table>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
6 changes: 6 additions & 0 deletions web/performance.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="windows-1250" ?>
<?xml-stylesheet type="text/xsl" href="style.xsl" ?>
<content lang="en" id="documentation">
<h2>Performance</h2>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/releasenotes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,5 @@
</td>
</tr>
</table>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/runtimesupport.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
<p>
Single NLog.dll binary supports multiple runtimes and operating systems.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/snapshots.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<?xml-stylesheet type="text/xsl" href="style.xsl" ?>
<content lang="en" id="download" subid="snapshots">
<h1>Snapshots</h1>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

12 changes: 11 additions & 1 deletion web/style.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<xsl:template match="/">
<html>
<head>
<xsl:apply-templates select="//base" />
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="stylesheet" href="syntax.css" type="text/css" />
<link rel="icon" href="http://www.nlog-project.org/favicon.ico" type="image/x-icon" />
Expand Down Expand Up @@ -58,6 +59,7 @@
<xsl:comment>#include virtual="/dynamic/snippet.cgi?topbanner"</xsl:comment>
<xsl:apply-templates select="/" mode="content" />
<xsl:comment>#include virtual="/dynamic/snippet.cgi?bottombanner"</xsl:comment>
<xsl:apply-templates select="/content/last-changed-date" mode="lastchangeddate" />
</td>
</tr>
<tr>
Expand Down Expand Up @@ -552,7 +554,7 @@

<xsl:template match="faq">
<hr />
<a name="faq{generate-id}"></a>
<a name="faq{generate-id(.)}"></a>
<p>
<b><xsl:apply-templates select="faq-question" /></b>
<br/>
Expand All @@ -568,4 +570,12 @@
<xsl:apply-templates />
</xsl:template>

<xsl:template match="last-changed-date">
</xsl:template>

<xsl:template match="last-changed-date" mode="lastchangeddate">
<xsl:variable name="lastUpdated"><xsl:value-of select="substring(.,18,20)" /></xsl:variable>
<xsl:if test="string-length($lastUpdated)=20">Last updated: <xsl:value-of select="$lastUpdated" /></xsl:if>
</xsl:template>

</xsl:stylesheet>
1 change: 1 addition & 0 deletions web/subversion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
The source snapshots are automatically generated on each day and
are available <a href="http://svn.nlog-project.org/snapshots/">here</a>.
</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

1 change: 1 addition & 0 deletions web/support.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<li><link href="mailinglists">Mailing Lists</link> and <a href="http://www.nabble.com/NLog-Forum-f6167.html">Forum</a> where you can ask questions about NLog usage.</li>
<li><a href="http://trac.nlog-project.org/nlog/">TRAC interface</a> where you can report bugs and feature requests.</li>
</ul>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/technical.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<li><a href="/clover/index.html">Latest code coverage results generated using Clover.NET (this is just a beginning of any serious unit testing so the coverage isn't very good)</a></li>
<li><a href="/nunit2report/">Latest NUnit testing results generated using NUnit2Report</a></li>
</ol>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/tutorial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -933,4 +933,5 @@ class Example
NLogViewer - real-time log viewer application (currently in pre-alpha stage) - <a href="http://viewer.nlog-project.org/">http://viewer.nlog-project.org/</a>
</li>
</ul>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/visualstudio.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@
<code lang="C#">
private static Logger logger = LogManager.GetCurrentClassLogger();
</code>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/website.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<content lang="en" id="website">
<h1>NLog website</h1>
<p>NLog website is located <a href="http://www.nlog-project.org/">here</a>. To report a bug, use the TRAC interface available <a href="http://trac.sav.net/nlog">here</a>.</p>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>
1 change: 1 addition & 0 deletions web/wprowadzenie.xml
Original file line number Diff line number Diff line change
Expand Up @@ -902,4 +902,5 @@ class Example
NLogViewer - aplikacja do podglądu logów w czasie rzeczywistym (wersja pre-alpha) - <a href="http://viewer.nlog-project.org/">http://viewer.nlog-project.org/</a>
</li>
</ul>
<last-changed-date>$LastChangedDate$</last-changed-date>
</content>

0 comments on commit fd6bd9f

Please sign in to comment.