<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>log4net-dev@logging.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/</id>
<updated>2009-12-05T14:27:13Z</updated>
<entry>
<title>[GUMP@vmgump]: Project logging-log4net (in module logging-log4net) failed</title>
<author><name>&lt;carnold@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c20091205083306.C8BD9AB4016@vmgump.apache.org%3e"/>
<id>urn:uuid:%3c20091205083306-C8BD9AB4016@vmgump-apache-org%3e</id>
<updated>2009-12-05T00:33:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To whom it may engage...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at general@gump.apache.org.

Project logging-log4net has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 6 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - logging-log4net :  Logging framework for .NET.


Full details are available at:
    http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/gump_work/build_logging-log4net_logging-log4net.html
Work Name: build_logging-log4net_logging-log4net (Type: Build)
Work ended in a state of : Failed
Elapsed: 10 secs
Command Line: NAnt.exe -D:java.awt.headless=true -D:gump.merge=/srv/gump/public/gump/work/merge.xml
-D:build.sysclasspath=only -buildfile:log4net.build 
[Working Directory: /srv/gump/public/workspace/logging-log4net]
DEVPATH: 
---------------------------------------------

check-doc-dir:


check-sdkdoc-dir:


check-sdkdoc-debug:


check-current-build-config:


check-build-debug:


check-build-defines:


set-mono-1.0-runtime-configuration:

 [property] Target framework changed to "Mono 1.0 Profile".

check-log4net-basedir:


check-current-bin-dir:

    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

clean-current-bin-dir:

     [echo] Cleaning the bin/mono/1.0/debug binaries directory.
   [delete] Deleting directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.
    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

compile-mono-1.0:

      [csc] Compiling 216 files to '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug/log4net.dll'.
      [csc] /srv/gump/public/workspace/logging-log4net/src/Layout/Pattern/StackTraceDetailPatternConverter.cs(62,17):
error CS0117: `System.Array' does not contain a definition for `Resize'
      [csc] /usr/lib/mono/1.0/mscorlib.dll (Location of the symbol related to previous error)
      [csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

/srv/gump/public/workspace/logging-log4net/log4net.build(769,14):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1)

Total time: 7.1 seconds.

---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/rss.xml
- Atom: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/atom.xml

============================== Gump Tracking Only ===
Produced by Gump version 2.3.
Gump Run 07000005122009, vmgump:vmgump-public:07000005122009
Gump E-mail Identifier (unique within run) #2.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [jira] Updated: (LOG4NET-64) [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.</title>
<author><name>Ron Grabowski &lt;rongrabowski@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c434749.39320.qm@web30505.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c434749-39320-qm@web30505-mail-mud-yahoo-com%3e</id>
<updated>2009-12-03T04:12:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the patch. I'll get it merged in!



----- Original Message ----
From: Eike-Peter Falk (JIRA) &lt;jira@apache.org&gt;
To: log4net-dev@logging.apache.org
Sent: Wed, December 2, 2009 7:50:21 AM
Subject: [jira] Updated: (LOG4NET-64) [PATCH] to RollingFileAppender.cs to add the ability
to preserve the log file name extension when rolling the log file.


     [ https://issues.apache.org/jira/browse/LOG4NET-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eike-Peter Falk updated LOG4NET-64:
-----------------------------------

    Attachment: log4net-64.patch

This patch should fix this issue.

&gt; [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension
when rolling the log file.
&gt; -----------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-64
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-64
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.9
&gt;            Reporter: Joshua Bassett
&gt;            Assignee: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: log4net-64.patch, LOG4NET-64.patch, LOG4NET-64.patch, patch.txt
&gt;
&gt;
&gt; Normally, when the log file is rolled the file name extension is not preserved.
&gt; For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.
&gt; However, this may not be desired in all cases and it may be necessary to preserve the
log file name extension when the log file is rolled. Most notably, this feature is useful
for maintaining file associations under Windows so that all log files can be associated with
a particaular text viewer.
&gt; For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.
&gt; This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender
class which is used to toggle this behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


</pre>
</div>
</content>
</entry>
<entry>
<title>[GUMP@vmgump]: Project logging-log4net (in module logging-log4net) failed</title>
<author><name>&lt;carnold@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c20091203083024.1FB8CAB4016@vmgump.apache.org%3e"/>
<id>urn:uuid:%3c20091203083024-1FB8CAB4016@vmgump-apache-org%3e</id>
<updated>2009-12-03T00:30:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To whom it may engage...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at general@gump.apache.org.

Project logging-log4net has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 3 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - logging-log4net :  Logging framework for .NET.


Full details are available at:
    http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/gump_work/build_logging-log4net_logging-log4net.html
Work Name: build_logging-log4net_logging-log4net (Type: Build)
Work ended in a state of : Failed
Elapsed: 20 secs
Command Line: NAnt.exe -D:java.awt.headless=true -D:gump.merge=/srv/gump/public/gump/work/merge.xml
-D:build.sysclasspath=only -buildfile:log4net.build 
[Working Directory: /srv/gump/public/workspace/logging-log4net]
DEVPATH: 
---------------------------------------------

check-doc-dir:


check-sdkdoc-dir:


check-sdkdoc-debug:


check-current-build-config:


check-build-debug:


check-build-defines:


set-mono-1.0-runtime-configuration:

 [property] Target framework changed to "Mono 1.0 Profile".

check-log4net-basedir:


check-current-bin-dir:

    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

clean-current-bin-dir:

     [echo] Cleaning the bin/mono/1.0/debug binaries directory.
   [delete] Deleting directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.
    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

compile-mono-1.0:

      [csc] Compiling 216 files to '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug/log4net.dll'.
      [csc] /srv/gump/public/workspace/logging-log4net/src/Layout/Pattern/StackTraceDetailPatternConverter.cs(62,17):
error CS0117: `System.Array' does not contain a definition for `Resize'
      [csc] /usr/lib/mono/1.0/mscorlib.dll (Location of the symbol related to previous error)
      [csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

/srv/gump/public/workspace/logging-log4net/log4net.build(769,14):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1)

Total time: 7.7 seconds.

---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/rss.xml
- Atom: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/atom.xml

============================== Gump Tracking Only ===
Produced by Gump version 2.3.
Gump Run 09000003122009, vmgump:vmgump-public:09000003122009
Gump E-mail Identifier (unique within run) #2.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-64) [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.</title>
<author><name>&quot;Eike-Peter Falk (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c1985103383.1259758221346.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1985103383-1259758221346-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T12:50:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eike-Peter Falk updated LOG4NET-64:
-----------------------------------

    Attachment: log4net-64.patch

This patch should fix this issue.

&gt; [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension
when rolling the log file.
&gt; -----------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-64
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-64
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.9
&gt;            Reporter: Joshua Bassett
&gt;            Assignee: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: log4net-64.patch, LOG4NET-64.patch, LOG4NET-64.patch, patch.txt
&gt;
&gt;
&gt; Normally, when the log file is rolled the file name extension is not preserved.
&gt; For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.
&gt; However, this may not be desired in all cases and it may be necessary to preserve the
log file name extension when the log file is rolled. Most notably, this feature is useful
for maintaining file associations under Windows so that all log files can be associated with
a particaular text viewer.
&gt; For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.
&gt; This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender
class which is used to toggle this behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-234) RollingFileAppender generates incorrect file name</title>
<author><name>&quot;Alex Vilela (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c1268928777.1259752221694.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1268928777-1259752221694-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T11:10:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784766#action_12784766
] 

Alex Vilela commented on LOG4NET-234:
-------------------------------------

I experience the same behavior. I have an IIS web application and the log files become multiplied:

datalog.2009.11.04.log
datalog.2009.11.04.log.2009.11.04.log
datalog.2009.11.04.log.2009.11.04.log.2009.11.04.log

Unlikely LOG4NET-175 everything keeps working fine and never crashes. 
The file isn't really rolled out, I mean, one file is not a sequence of the previous one.

Some logs happen on the first file, some on the second, then on the third, than log4net uses
the first again and keep switching between the log files, therefore reading the logs is really
hard.
Please see attached log files.

This is my configuration for the appender:
    &lt;appender name="dataLog" type="log4net.Appender.RollingFileAppender,log4net"&gt;
        &lt;param name="File" value="logs/datalog"/&gt;
        &lt;param name="AppendToFile" value="true"/&gt;
        &lt;param name="RollingStyle" value="Date"/&gt;
        &lt;param name="DatePattern" value=".yyyy.MM.dd.'log'"/&gt;
        &lt;param name="StaticLogFileName" value="false"/&gt;

        &lt;layout type="log4net.Layout.PatternLayout,log4net"&gt;
            &lt;param name="ConversionPattern" value="%d [%t] %-5p %c.%M - %m%n"/&gt;
        &lt;/layout&gt;
    &lt;/appender&gt;

I'm using log4net 1.2.10.0

&gt; RollingFileAppender generates incorrect file name
&gt; -------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-234
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-234
&gt;             Project: Log4net
&gt;          Issue Type: Bug
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.10
&gt;         Environment: Windows XP, Windows 2003
&gt;            Reporter: Miroslav Vanicky
&gt;         Attachments: logs.zip
&gt;
&gt;   Original Estimate: 24h
&gt;  Remaining Estimate: 24h
&gt;
&gt; I have Appender defined as follow...
&gt; &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" &gt;
&gt;     &lt;file value="Logs\Log" /&gt; &lt;!-- Základní název souboru --&gt;
&gt;     &lt;appendtofile value="true" /&gt;
&gt;     &lt;rollingstyle value="Date" /&gt; &lt;!-- Soubory budou vznikat na základě datumu/času
logu --&gt;
&gt;     &lt;datepattern value="_yyyy-MM-dd.\tx\t"/&gt; &lt;!-- Maska pro název souboru (to
.\tx\t tam musí být, aby byla přípona .txt)--&gt;
&gt;     &lt;StaticLogFileName value="false" /&gt; &lt;!-- Už první vzniklý soubor bude
mít název obsahující datum. Jinak by logoval stále do jednoho stejného souboru a ten
by v případě potřeby (změna datumu) přejmenoval --&gt;
&gt;     &lt;!-- Co a jak bude formátováno ve výstupu.
&gt;     Seznam všech dostupných %proměnných je na: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html

&gt;     Na stejné stránce dole je popsáno i co znamená to -5level apod. --&gt;
&gt;     &lt;layout type="log4net.Layout.PatternLayout"&gt;
&gt;       &lt;conversionpattern value="%date [%-5level] - %message%newline"&gt;&lt;/conversionpattern&gt;
&gt;     &lt;/layout&gt;
&gt;   &lt;/appender&gt;
&gt; This Appender should generate file names like "Log_2009-10-15.txt", mostly it works fine,
but in some unknown situations it generates file named "Log_2009-10-15.txt_2009-10-15.txt".
It seems to me that this happens when there were no log-files and the incorrectly named file
was the first log-file generated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-234) RollingFileAppender generates incorrect file name</title>
<author><name>&quot;Alex Vilela (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c1984634028.1259752221793.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1984634028-1259752221793-JavaMail-jira@brutus%3e</id>
<updated>2009-12-02T11:10:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alex Vilela updated LOG4NET-234:
--------------------------------

    Attachment: logs.zip

The log files I mentioned on the previous post.

&gt; RollingFileAppender generates incorrect file name
&gt; -------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-234
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-234
&gt;             Project: Log4net
&gt;          Issue Type: Bug
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.10
&gt;         Environment: Windows XP, Windows 2003
&gt;            Reporter: Miroslav Vanicky
&gt;         Attachments: logs.zip
&gt;
&gt;   Original Estimate: 24h
&gt;  Remaining Estimate: 24h
&gt;
&gt; I have Appender defined as follow...
&gt; &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" &gt;
&gt;     &lt;file value="Logs\Log" /&gt; &lt;!-- Základní název souboru --&gt;
&gt;     &lt;appendtofile value="true" /&gt;
&gt;     &lt;rollingstyle value="Date" /&gt; &lt;!-- Soubory budou vznikat na základě datumu/času
logu --&gt;
&gt;     &lt;datepattern value="_yyyy-MM-dd.\tx\t"/&gt; &lt;!-- Maska pro název souboru (to
.\tx\t tam musí být, aby byla přípona .txt)--&gt;
&gt;     &lt;StaticLogFileName value="false" /&gt; &lt;!-- Už první vzniklý soubor bude
mít název obsahující datum. Jinak by logoval stále do jednoho stejného souboru a ten
by v případě potřeby (změna datumu) přejmenoval --&gt;
&gt;     &lt;!-- Co a jak bude formátováno ve výstupu.
&gt;     Seznam všech dostupných %proměnných je na: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html

&gt;     Na stejné stránce dole je popsáno i co znamená to -5level apod. --&gt;
&gt;     &lt;layout type="log4net.Layout.PatternLayout"&gt;
&gt;       &lt;conversionpattern value="%date [%-5level] - %message%newline"&gt;&lt;/conversionpattern&gt;
&gt;     &lt;/layout&gt;
&gt;   &lt;/appender&gt;
&gt; This Appender should generate file names like "Log_2009-10-15.txt", mostly it works fine,
but in some unknown situations it generates file named "Log_2009-10-15.txt_2009-10-15.txt".
It seems to me that this happens when there were no log-files and the incorrectly named file
was the first log-file generated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[GUMP@vmgump]: Project logging-log4net (in module logging-log4net) failed</title>
<author><name>&lt;carnold@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c20091202003339.918BEAB4018@vmgump.apache.org%3e"/>
<id>urn:uuid:%3c20091202003339-918BEAB4018@vmgump-apache-org%3e</id>
<updated>2009-12-01T16:33:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To whom it may engage...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at general@gump.apache.org.

Project logging-log4net has an issue affecting its community integration.
This issue affects 1 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - logging-log4net :  Logging framework for .NET.


Full details are available at:
    http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/gump_work/build_logging-log4net_logging-log4net.html
Work Name: build_logging-log4net_logging-log4net (Type: Build)
Work ended in a state of : Failed
Elapsed: 30 secs
Command Line: NAnt.exe -D:java.awt.headless=true -D:gump.merge=/srv/gump/public/gump/work/merge.xml
-D:build.sysclasspath=only -buildfile:log4net.build 
[Working Directory: /srv/gump/public/workspace/logging-log4net]
DEVPATH: 
---------------------------------------------

check-doc-dir:


check-sdkdoc-dir:


check-sdkdoc-debug:


check-current-build-config:


check-build-debug:


check-build-defines:


set-mono-1.0-runtime-configuration:

 [property] Target framework changed to "Mono 1.0 Profile".

check-log4net-basedir:


check-current-bin-dir:

    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

clean-current-bin-dir:

     [echo] Cleaning the bin/mono/1.0/debug binaries directory.
   [delete] Deleting directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.
    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

compile-mono-1.0:

      [csc] Compiling 216 files to '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug/log4net.dll'.
      [csc] /srv/gump/public/workspace/logging-log4net/src/Layout/Pattern/StackTraceDetailPatternConverter.cs(62,17):
error CS0117: `System.Array' does not contain a definition for `Resize'
      [csc] /usr/lib/mono/1.0/mscorlib.dll (Location of the symbol related to previous error)
      [csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

/srv/gump/public/workspace/logging-log4net/log4net.build(769,14):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1)

Total time: 9.7 seconds.

---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/rss.xml
- Atom: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/atom.xml

============================== Gump Tracking Only ===
Produced by Gump version 2.3.
Gump Run 11001601122009, vmgump:vmgump-public:11001601122009
Gump E-mail Identifier (unique within run) #1.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]


</pre>
</div>
</content>
</entry>
<entry>
<title>[GUMP@vmgump]: Project logging-log4net (in module logging-log4net) failed</title>
<author><name>&lt;carnold@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200912.mbox/%3c20091201083317.66922AB4EC9@vmgump.apache.org%3e"/>
<id>urn:uuid:%3c20091201083317-66922AB4EC9@vmgump-apache-org%3e</id>
<updated>2009-12-01T00:33:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
To whom it may engage...
        
This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at general@gump.apache.org.

Project logging-log4net has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 108 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
    - logging-log4net :  Logging framework for .NET.


Full details are available at:
    http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were provided:
 -INFO- Failed with reason build failed



The following work was performed:
http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/gump_work/build_logging-log4net_logging-log4net.html
Work Name: build_logging-log4net_logging-log4net (Type: Build)
Work ended in a state of : Failed
Elapsed: 9 secs
Command Line: NAnt.exe -D:java.awt.headless=true -D:gump.merge=/srv/gump/public/gump/work/merge.xml
-D:build.sysclasspath=only -buildfile:log4net.build 
[Working Directory: /srv/gump/public/workspace/logging-log4net]
DEVPATH: 
---------------------------------------------

check-doc-dir:


check-sdkdoc-dir:


check-sdkdoc-debug:


check-current-build-config:


check-build-debug:


check-build-defines:


set-mono-1.0-runtime-configuration:

 [property] Target framework changed to "Mono 1.0 Profile".

check-log4net-basedir:


check-current-bin-dir:

    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

clean-current-bin-dir:

     [echo] Cleaning the bin/mono/1.0/debug binaries directory.
   [delete] Deleting directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.
    [mkdir] Creating directory '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug'.

compile-mono-1.0:

      [csc] Compiling 216 files to '/srv/gump/public/workspace/logging-log4net/bin/mono/1.0/debug/log4net.dll'.
      [csc] /srv/gump/public/workspace/logging-log4net/src/Layout/Pattern/StackTraceDetailPatternConverter.cs(62,17):
error CS0117: `System.Array' does not contain a definition for `Resize'
      [csc] /usr/lib/mono/1.0/mscorlib.dll (Location of the symbol related to previous error)
      [csc] Compilation failed: 1 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

/srv/gump/public/workspace/logging-log4net/log4net.build(769,14):
External Program Failed: /usr/lib/mono/1.0/mcs.exe (return code was 1)

Total time: 5.7 seconds.

---------------------------------------------

To subscribe to this information via syndicated feeds:
- RSS: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/rss.xml
- Atom: http://vmgump.apache.org/gump/public/logging-log4net/logging-log4net/atom.xml

============================== Gump Tracking Only ===
Produced by Gump version 2.3.
Gump Run 09000001122009, vmgump:vmgump-public:09000001122009
Gump E-mail Identifier (unique within run) #2.

--
Apache Gump
http://gump.apache.org/ [Instance: vmgump]


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-240) Backup of logs are not created when application is running and at the same time date changes.</title>
<author><name>&quot;renuka (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1593213872.1259573360734.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1593213872-1259573360734-JavaMail-jira@brutus%3e</id>
<updated>2009-11-30T09:29:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Backup of logs are not created when application is running and at the same time date changes.
---------------------------------------------------------------------------------------------

                 Key: LOG4NET-240
                 URL: https://issues.apache.org/jira/browse/LOG4NET-240
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: XP
            Reporter: renuka
            Priority: Critical


Hi,

I have set configuration properties as below.

&lt;appender name="DMLRollingFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
			&lt;file value="DML Log.txt" /&gt;
			&lt;appendToFile value="true" /&gt;
			&lt;rollingStyle value="Composite" /&gt;
			&lt;maxSizeRollBackups value="5" /&gt;
			&lt;maximumFileSize value="5000KB" /&gt;
			&lt;datePattern value=".yyyyMMdd" /&gt;
			&lt;staticLogFileName value="true" /&gt;
			&lt;layout type="log4net.Layout.PatternLayout"&gt;
				&lt;conversionPattern value="%date{HH:mm:ss} %-5logger %-5level [%-15.15thread] &gt; %message%newline"/&gt;
			&lt;/layout&gt;
		&lt;/appender&gt;
When is in running mode, data gets locked correctely but in the mean time if date changes,
previous date's backup is not getting created. This happens only if application is running
else it works perfectely.

Please help.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-239) LoggingEvent m_cacheUpdatable is useless and even produce an unexpected behavior</title>
<author><name>=?utf-8?Q?Fran=C3=A7ois_Dumont_=28JIRA=29?= &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c711631932.1259357600699.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c711631932-1259357600699-JavaMail-jira@brutus%3e</id>
<updated>2009-11-27T21:33:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
LoggingEvent m_cacheUpdatable is useless and even produce an unexpected behavior
--------------------------------------------------------------------------------

                 Key: LOG4NET-239
                 URL: https://issues.apache.org/jira/browse/LOG4NET-239
             Project: Log4net
          Issue Type: Bug
    Affects Versions: 1.2.10
         Environment: .Net 2.0
            Reporter: François Dumont


I already notify my problem on the mailing but as I had no answer I finally prefered to report
it here. Rather than copy/paste my mail I prefered to write a test that has to be added to
the BufferingAppenderTest:

        [Test, Description("Check that use of the BufferingAppender shall not change the rendering
of the log event.")]
        public void TestAppenderSkeletonBehavior()
        {
            SetupRepository();

            ObserverAppender observer = new ObserverAppender();
            m_bufferingForwardingAppender.AddAppender(observer);

            ILogger logger = m_hierarchy.GetLogger("test");

            logger.Log(typeof(BufferingAppenderTest), Level.Warn, "Message", new Exception("Exception"));
            Assert.AreEqual(1, observer.EventsCount);
            LoggingEvent loggingEvent1 = observer.Dequeue();

            // Lets see what happen if we do not fix the exception part of the logging event
at the
            // buffering forwarding appender level and let underlying appenders deal with
it:
            m_bufferingForwardingAppender.Fix ^= FixFlags.Exception;

            logger.Log(typeof(BufferingAppenderTest), Level.Warn, "Message", new Exception("Exception"));
            Assert.AreEqual(1, observer.EventsCount);
            LoggingEvent loggingEvent2 = observer.Dequeue();

            // The two logging events shall be similar:
            Assert.AreEqual(loggingEvent1.Level, loggingEvent2.Level);
            Assert.AreEqual(loggingEvent1.Domain, loggingEvent2.Domain);

            // Lets check the appender skeleton behavior: it normally renders the exception
string info
            // if the layout do not do so invoking the GetExceptionString method.
            Assert.IsNotNull(loggingEvent1.GetExceptionString(),
                             "Missing exception information when buffering appender fix it
!");
            Assert.IsNotNull(loggingEvent2.GetExceptionString(),
                            "Missing exception information when buffering appender do not
fix it !");
        }

This test needs this following small appender implementation to work:

    internal sealed class ObserverAppender : AppenderSkeleton
    {
        private readonly Queue&lt;LoggingEvent&gt; loggingEvents;

        public int EventsCount
        {
            get { return this.loggingEvents.Count; }
        }

        public ObserverAppender()
        {
            this.loggingEvents = new Queue&lt;LoggingEvent&gt;();
        }

        protected override void Append(LoggingEvent loggingEvent)
        {
            this.loggingEvents.Enqueue(loggingEvent);
        }

        public LoggingEvent Dequeue()
        {
            return this.loggingEvents.Dequeue();
        }
    }


For info I try to comment m_cacheUpdatable = false and notice no regression when running tests.
I would really be interested in knowing what this flag is for ?

Thanks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: log4net v1.2.10 System.ArgumentException: Destination array was not long enough.</title>
<author><name>dekin &lt;dekin@inbox.ru&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c26517802.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26517802-post@talk-nabble-com%3e</id>
<updated>2009-11-25T18:19:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This may occur due to synchronization issues because MemoryAppender isn't
thread-safe.
To fix this, provide your own thread-safe version for MemoryAppender by
synchronizing read/write operations, for example, with "lock" keyword.


jean leroux wrote:
&gt; 
&gt; Unhandled exception in application: System.ArgumentException: Destination
&gt; array was not long enough. Check destIndex and length, and the array's
&gt; lower bounds.
&gt; 

-- 
View this message in context: http://old.nabble.com/log4net-v1.2.10-System.ArgumentException%3A-Destination-array-was-not-long-enough.-tp14633240p26517802.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-232) Use ReaderWriterLockSlim instead of ReaderWriterLock.</title>
<author><name>&quot;Piers Williams (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1553089629.1259136640341.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1553089629-1259136640341-JavaMail-jira@brutus%3e</id>
<updated>2009-11-25T08:10:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12782338#action_12782338
] 

Piers Williams commented on LOG4NET-232:
----------------------------------------

This is a real pain for us, because we are attempting to use Chess (MS Research) to test for
multithreaded behavoral correctness, and due to the deprication of ReaderWriterLock, Chess
doesn't support it (and throws NotImplementedExceptions when it encounters it).

So we're having to come up with evil ways to strip out log4net from our code under test. Unfortunately
even when our log4net code path isn't exercised at runtime, static class ctors in log4net
give us grief. Much of this seems to come down to LoggerManager hooking ProcessExit / DomainUnload
in it's static class ctor (which is pure evil by the way - why can't you just wait until the
first repository is created?), and it's in there that a ReaderWriterLock is used when the
repositories are shut down. I'm currently trying to unwire them using reflection which is
just horrible.

Looks like just a few changes to log4net.Util.ReaderWriterLock are all that's needed...

&gt; Use ReaderWriterLockSlim instead of ReaderWriterLock.
&gt; -----------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-232
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-232
&gt;             Project: Log4net
&gt;          Issue Type: Improvement
&gt;    Affects Versions: 1.2.10
&gt;         Environment: Any
&gt;            Reporter: Aron Weiler
&gt;            Priority: Minor
&gt;
&gt; ReaderWriterLock should be replaced with ReaderWriterLockSlim according to Microsoft
for performance and simplification reasons.
&gt; MSDN: http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlock.aspx
&gt; The .NET Framework has two reader-writer locks, ReaderWriterLockSlim and ReaderWriterLock.
ReaderWriterLockSlim is recommended for all new development. ReaderWriterLockSlim is similar
to ReaderWriterLock, but it has simplified rules for recursion and for upgrading and downgrading
lock state. ReaderWriterLockSlim avoids many cases of potential deadlock. In addition, the
performance of ReaderWriterLockSlim is significantly better than ReaderWriterLock. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (LOG4NET-27) Rolling files on date/time boundaries doesn't support a maximum number of backup files.</title>
<author><name>&quot;Petr Felzmann (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c700909456.1258922680148.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c700909456-1258922680148-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T20:44:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781212#action_12781212
] 

Petr Felzmann edited comment on LOG4NET-27 at 11/22/09 8:43 PM:
----------------------------------------------------------------

I created patch from Joshua Masek changes against the current revision in source control.
Hope it moves this issue little bit forward.

Personally I'm still on the way to understand the code to be able implement ideas from Ron's
comment (05/Jun/09 10:28).

Also I'm very surprised how the unit tests are complicated. I'd like to write unit tests for
this change... but there are missing completely unit tests for anything concerning date/time
:-(

      was (Author: felzmann):
    I created patch from Joshua Masek changes against the current revision in source control.
Hope it moves this issue little bit forward.

Personally I'm still on the way to understand the code to be able implement ideas from Ron's
comment (05/Jun/09 10:28).

Also I'm very surprised how the unit tests are complicated.
I'd like to write unit tests for this change...
but there are missing completely unit tests for anything concerning date/time :-(
  
&gt; Rolling files on date/time boundaries doesn't support a maximum number of backup files.
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-27
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-27
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.11
&gt;            Reporter: Florian Ramillien
&gt;            Priority: Minor
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-27.patch, RollingFileAppender.cs, RollingFileAppender.cs.patch,
RollingFileAppender.patch
&gt;
&gt;
&gt; A maximum of backup files exist when rolling files on file size, but not for rolling
on date/time.
&gt; This can be implemented with the same config key : MaxSizeRollBackups

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (LOG4NET-27) Rolling files on date/time boundaries doesn't support a maximum number of backup files.</title>
<author><name>&quot;Petr Felzmann (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1899027471.1258922562674.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1899027471-1258922562674-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T20:42:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781212#action_12781212
] 

Petr Felzmann edited comment on LOG4NET-27 at 11/22/09 8:41 PM:
----------------------------------------------------------------

I created patch from Joshua Masek changes against the current revision in source control.
Hope it moves this issue little bit forward.

Personaly I'm still on the way to understand the code to be able implement ideas from Ron's
comment (05/Jun/09 10:28).

Also I'm very supprised how the unit tests are complicated.
I'd like to write unit tests for this change...
but there are missing completely unit tests for anything concerning date/time :-(

      was (Author: felzmann):
    This is patch created from last attachment posted by Joshua Masek.
  
&gt; Rolling files on date/time boundaries doesn't support a maximum number of backup files.
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-27
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-27
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.11
&gt;            Reporter: Florian Ramillien
&gt;            Priority: Minor
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-27.patch, RollingFileAppender.cs, RollingFileAppender.cs.patch,
RollingFileAppender.patch
&gt;
&gt;
&gt; A maximum of backup files exist when rolling files on file size, but not for rolling
on date/time.
&gt; This can be implemented with the same config key : MaxSizeRollBackups

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (LOG4NET-27) Rolling files on date/time boundaries doesn't support a maximum number of backup files.</title>
<author><name>&quot;Petr Felzmann (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1154239867.1258922562725.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1154239867-1258922562725-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T20:42:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-27?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781212#action_12781212
] 

Petr Felzmann edited comment on LOG4NET-27 at 11/22/09 8:42 PM:
----------------------------------------------------------------

I created patch from Joshua Masek changes against the current revision in source control.
Hope it moves this issue little bit forward.

Personally I'm still on the way to understand the code to be able implement ideas from Ron's
comment (05/Jun/09 10:28).

Also I'm very surprised how the unit tests are complicated.
I'd like to write unit tests for this change...
but there are missing completely unit tests for anything concerning date/time :-(

      was (Author: felzmann):
    I created patch from Joshua Masek changes against the current revision in source control.
Hope it moves this issue little bit forward.

Personaly I'm still on the way to understand the code to be able implement ideas from Ron's
comment (05/Jun/09 10:28).

Also I'm very supprised how the unit tests are complicated.
I'd like to write unit tests for this change...
but there are missing completely unit tests for anything concerning date/time :-(
  
&gt; Rolling files on date/time boundaries doesn't support a maximum number of backup files.
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-27
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-27
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.11
&gt;            Reporter: Florian Ramillien
&gt;            Priority: Minor
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-27.patch, RollingFileAppender.cs, RollingFileAppender.cs.patch,
RollingFileAppender.patch
&gt;
&gt;
&gt; A maximum of backup files exist when rolling files on file size, but not for rolling
on date/time.
&gt; This can be implemented with the same config key : MaxSizeRollBackups

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-27) Rolling files on date/time boundaries doesn't support a maximum number of backup files.</title>
<author><name>&quot;Petr Felzmann (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1812709347.1258922439955.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1812709347-1258922439955-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T20:40:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Petr Felzmann updated LOG4NET-27:
---------------------------------

    Attachment: LOG4NET-27.patch

This is patch created from last attachment posted by Joshua Masek.

&gt; Rolling files on date/time boundaries doesn't support a maximum number of backup files.
&gt; ---------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-27
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-27
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.11
&gt;            Reporter: Florian Ramillien
&gt;            Priority: Minor
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-27.patch, RollingFileAppender.cs, RollingFileAppender.cs.patch,
RollingFileAppender.patch
&gt;
&gt;
&gt; A maximum of backup files exist when rolling files on file size, but not for rolling
on date/time.
&gt; This can be implemented with the same config key : MaxSizeRollBackups

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-235) IP Address Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c336677561.1258428099792.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c336677561-1258428099792-JavaMail-jira@brutus%3e</id>
<updated>2009-11-17T03:21:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12778703#action_12778703
] 

Adam Davies commented on LOG4NET-235:
-------------------------------------

We could create a class to hold all of the properties in which we are interested.  Called
it HttpContextInfo for lack of a better name, the LoggingEvent could contain a property of
type HttpContextInfo.  We could combine all of the AspNet Patterns into one pattern and use
options to display properties.

Example
aspnet-cache could become aspnet{cache}

or

aspnet-cache{item} could become aspnet{cache[item]}

&gt; IP Address Pattern Converter
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-235
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-235
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - IP Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Created AspNetIPAddressPatternConverter to provide the client IP Address.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-235) IP Address Pattern Converter</title>
<author><name>&quot;Ron Grabowski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1904262885.1258418619586.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1904262885-1258418619586-JavaMail-jira@brutus%3e</id>
<updated>2009-11-17T00:43:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12778669#action_12778669
] 

Ron Grabowski commented on LOG4NET-235:
---------------------------------------

Can you think of a better way to expose properties of HttpContext? Request, Session, Cache,
etc. all have a lot of useful properties. Should we code up patterns for each and every possibility
or just add them on an added needed basis as the community needs them?

&gt; IP Address Pattern Converter
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-235
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-235
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - IP Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Created AspNetIPAddressPatternConverter to provide the client IP Address.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (LOG4NET-225) Multithreading and Deadlocks</title>
<author><name>&quot;Ron Grabowski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1401075095.1258417899586.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1401075095-1258417899586-JavaMail-jira@brutus%3e</id>
<updated>2009-11-17T00:31:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ron Grabowski resolved LOG4NET-225.
-----------------------------------

    Resolution: Invalid

Don't log while logging within the same LoggerRepository.

&gt; Multithreading and Deadlocks
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-225
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-225
&gt;             Project: Log4net
&gt;          Issue Type: Bug
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Thomas Haller
&gt;            Priority: Blocker
&gt;         Attachments: Log4NetDeadlock.zip
&gt;
&gt;
&gt; If an Appender has to execute some logic on another thread, 
&gt; witch uses also log4net, this leads to a deadlock.
&gt; The sample project i created demonstrates that problem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>svn commit: r881070 - in /logging/log4net/trunk: src/log4net.vs2005.csproj src/log4net.vs2005.sln src/log4net.vs2008.csproj src/log4net.vs2008.sln tests/src/log4net.Tests.vs2005.csproj tests/src/log4net.Tests.vs2008.csproj</title>
<author><name>rgrabowski@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c20091117002124.48BAD23888D8@eris.apache.org%3e"/>
<id>urn:uuid:%3c20091117002124-48BAD23888D8@eris-apache-org%3e</id>
<updated>2009-11-17T00:21:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Author: rgrabowski
Date: Tue Nov 17 00:21:23 2009
New Revision: 881070

URL: http://svn.apache.org/viewvc?rev=881070&amp;view=rev
Log:
Upgraded project files from vs2005 to vs2008.

Added:
    logging/log4net/trunk/src/log4net.vs2008.csproj
      - copied, changed from r826579, logging/log4net/trunk/src/log4net.vs2005.csproj
    logging/log4net/trunk/src/log4net.vs2008.sln
      - copied, changed from r826579, logging/log4net/trunk/src/log4net.vs2005.sln
    logging/log4net/trunk/tests/src/log4net.Tests.vs2008.csproj
      - copied, changed from r826579, logging/log4net/trunk/tests/src/log4net.Tests.vs2005.csproj
Removed:
    logging/log4net/trunk/src/log4net.vs2005.csproj
    logging/log4net/trunk/src/log4net.vs2005.sln
    logging/log4net/trunk/tests/src/log4net.Tests.vs2005.csproj

Copied: logging/log4net/trunk/src/log4net.vs2008.csproj (from r826579, logging/log4net/trunk/src/log4net.vs2005.csproj)
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/log4net.vs2008.csproj?p2=logging/log4net/trunk/src/log4net.vs2008.csproj&amp;p1=logging/log4net/trunk/src/log4net.vs2005.csproj&amp;r1=826579&amp;r2=881070&amp;rev=881070&amp;view=diff
==============================================================================
--- logging/log4net/trunk/src/log4net.vs2005.csproj (original)
+++ logging/log4net/trunk/src/log4net.vs2008.csproj Tue Nov 17 00:21:23 2009
@@ -1,7 +1,7 @@
-ï»¿&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
+ï»¿&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5"&gt;
   &lt;PropertyGroup&gt;
     &lt;ProjectType&gt;Local&lt;/ProjectType&gt;
-    &lt;ProductVersion&gt;8.0.50727&lt;/ProductVersion&gt;
+    &lt;ProductVersion&gt;9.0.30729&lt;/ProductVersion&gt;
     &lt;SchemaVersion&gt;2.0&lt;/SchemaVersion&gt;
     &lt;ProjectGuid&gt;{181FE707-E161-4722-9F38-6AAAB6FAA106}&lt;/ProjectGuid&gt;
     &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
@@ -25,6 +25,7 @@
     &lt;/FileUpgradeFlags&gt;
     &lt;UpgradeBackupLocation&gt;
     &lt;/UpgradeBackupLocation&gt;
+    &lt;OldToolsVersion&gt;2.0&lt;/OldToolsVersion&gt;
   &lt;/PropertyGroup&gt;
   &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&gt;
     &lt;OutputPath&gt;..\build\bin\net\2.0\debug\&lt;/OutputPath&gt;
@@ -420,6 +421,7 @@
     &lt;Compile Include="Layout\Pattern\RelativeTimePatternConverter.cs"&gt;
       &lt;SubType&gt;Code&lt;/SubType&gt;
     &lt;/Compile&gt;
+    &lt;Compile Include="Layout\Pattern\StackTraceDetailPatternConverter.cs" /&gt;
     &lt;Compile Include="Layout\Pattern\StackTracePatternConverter.cs" /&gt;
     &lt;Compile Include="Layout\Pattern\ThreadPatternConverter.cs"&gt;
       &lt;SubType&gt;Code&lt;/SubType&gt;

Copied: logging/log4net/trunk/src/log4net.vs2008.sln (from r826579, logging/log4net/trunk/src/log4net.vs2005.sln)
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/log4net.vs2008.sln?p2=logging/log4net/trunk/src/log4net.vs2008.sln&amp;p1=logging/log4net/trunk/src/log4net.vs2005.sln&amp;r1=826579&amp;r2=881070&amp;rev=881070&amp;view=diff
==============================================================================
--- logging/log4net/trunk/src/log4net.vs2005.sln (original)
+++ logging/log4net/trunk/src/log4net.vs2008.sln Tue Nov 17 00:21:23 2009
@@ -1,8 +1,8 @@
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "log4net.vs2005", "log4net.vs2005.csproj",
"{181FE707-E161-4722-9F38-6AAAB6FAA106}"
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "log4net.vs2008", "log4net.vs2008.csproj",
"{181FE707-E161-4722-9F38-6AAAB6FAA106}"
 EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "log4net.Tests.vs2005", "..\tests\src\log4net.Tests.vs2005.csproj",
"{B0530F10-0238-49A9-93B0-8EF412E90BCF}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "log4net.Tests.vs2008", "..\tests\src\log4net.Tests.vs2008.csproj",
"{B0530F10-0238-49A9-93B0-8EF412E90BCF}"
 EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution

Copied: logging/log4net/trunk/tests/src/log4net.Tests.vs2008.csproj (from r826579, logging/log4net/trunk/tests/src/log4net.Tests.vs2005.csproj)
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/log4net.Tests.vs2008.csproj?p2=logging/log4net/trunk/tests/src/log4net.Tests.vs2008.csproj&amp;p1=logging/log4net/trunk/tests/src/log4net.Tests.vs2005.csproj&amp;r1=826579&amp;r2=881070&amp;rev=881070&amp;view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/log4net.Tests.vs2005.csproj (original)
+++ logging/log4net/trunk/tests/src/log4net.Tests.vs2008.csproj Tue Nov 17 00:21:23 2009
@@ -1,7 +1,7 @@
-ï»¿&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
+ï»¿&lt;Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5"&gt;
   &lt;PropertyGroup&gt;
     &lt;ProjectType&gt;Local&lt;/ProjectType&gt;
-    &lt;ProductVersion&gt;8.0.50727&lt;/ProductVersion&gt;
+    &lt;ProductVersion&gt;9.0.30729&lt;/ProductVersion&gt;
     &lt;SchemaVersion&gt;2.0&lt;/SchemaVersion&gt;
     &lt;ProjectGuid&gt;{B0530F10-0238-49A9-93B0-8EF412E90BCF}&lt;/ProjectGuid&gt;
     &lt;Configuration Condition=" '$(Configuration)' == '' "&gt;Debug&lt;/Configuration&gt;
@@ -25,6 +25,8 @@
     &lt;/FileUpgradeFlags&gt;
     &lt;UpgradeBackupLocation&gt;
     &lt;/UpgradeBackupLocation&gt;
+    &lt;OldToolsVersion&gt;2.0&lt;/OldToolsVersion&gt;
+    &lt;TargetFrameworkVersion&gt;v3.5&lt;/TargetFrameworkVersion&gt;
   &lt;/PropertyGroup&gt;
   &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "&gt;
     &lt;OutputPath&gt;..\bin\Debug\&lt;/OutputPath&gt;
@@ -67,14 +69,17 @@
     &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
   &lt;/PropertyGroup&gt;
   &lt;ItemGroup&gt;
-    &lt;Reference Include="nunit.framework, Version=2.4.5.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77,
processorArchitecture=MSIL"&gt;
+    &lt;Reference Include="nunit.framework, Version=2.5.2.9222, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77,
processorArchitecture=MSIL"&gt;
       &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt;
-      &lt;HintPath&gt;..\..\..\IBatisNet\External-Bin\Net\2.0\nunit.framework.dll&lt;/HintPath&gt;
+      &lt;HintPath&gt;..\..\..\ibatisnet-3\External-Bin\Net\2.0\nunit.framework.dll&lt;/HintPath&gt;
     &lt;/Reference&gt;
     &lt;Reference Include="System"&gt;
       &lt;Name&gt;System&lt;/Name&gt;
     &lt;/Reference&gt;
     &lt;Reference Include="System.configuration" /&gt;
+    &lt;Reference Include="System.Core"&gt;
+      &lt;RequiredTargetFramework&gt;3.5&lt;/RequiredTargetFramework&gt;
+    &lt;/Reference&gt;
     &lt;Reference Include="System.Data"&gt;
       &lt;Name&gt;System.Data&lt;/Name&gt;
     &lt;/Reference&gt;
@@ -165,9 +170,9 @@
     &lt;/Compile&gt;
   &lt;/ItemGroup&gt;
   &lt;ItemGroup&gt;
-    &lt;ProjectReference Include="..\..\src\log4net.vs2005.csproj"&gt;
+    &lt;ProjectReference Include="..\..\src\log4net.vs2008.csproj"&gt;
       &lt;Project&gt;{181FE707-E161-4722-9F38-6AAAB6FAA106}&lt;/Project&gt;
-      &lt;Name&gt;log4net.vs2005&lt;/Name&gt;
+      &lt;Name&gt;log4net.vs2008&lt;/Name&gt;
     &lt;/ProjectReference&gt;
   &lt;/ItemGroup&gt;
   &lt;Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /&gt;




</pre>
</div>
</content>
</entry>
<entry>
<title>svn commit: r881069 - in /logging/log4net/trunk: src/Layout/Pattern/StackTraceDetailPatternConverter.cs src/Layout/Pattern/StackTracePatternConverter.cs src/Layout/PatternLayout.cs tests/src/Layout/PatternLayoutTest.cs</title>
<author><name>rgrabowski@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c20091117002055.2CA792388892@eris.apache.org%3e"/>
<id>urn:uuid:%3c20091117002055-2CA792388892@eris-apache-org%3e</id>
<updated>2009-11-17T00:20:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Author: rgrabowski
Date: Tue Nov 17 00:20:54 2009
New Revision: 881069

URL: http://svn.apache.org/viewvc?rev=881069&amp;view=rev
Log:
Applied additional patches for LOG4NET-154 to improve functionality of StackTracePatternConverter.

Added:
    logging/log4net/trunk/src/Layout/Pattern/StackTraceDetailPatternConverter.cs
Modified:
    logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs
    logging/log4net/trunk/src/Layout/PatternLayout.cs
    logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs

Added: logging/log4net/trunk/src/Layout/Pattern/StackTraceDetailPatternConverter.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Layout/Pattern/StackTraceDetailPatternConverter.cs?rev=881069&amp;view=auto
==============================================================================
--- logging/log4net/trunk/src/Layout/Pattern/StackTraceDetailPatternConverter.cs (added)
+++ logging/log4net/trunk/src/Layout/Pattern/StackTraceDetailPatternConverter.cs Tue Nov 17
00:20:54 2009
@@ -0,0 +1,90 @@
+using System;
+using System.Text;
+
+using log4net.Util;
+using log4net.Core;
+
+namespace log4net.Layout.Pattern
+{
+    /// &lt;summary&gt;
+    /// Write the caller stack frames to the output
+    /// &lt;/summary&gt;
+    /// &lt;remarks&gt;
+    /// &lt;para&gt;
+    /// Writes the &lt;see cref="LocationInfo.StackFrames"/&gt; to the output writer, using
format:
+    /// type3.MethodCall3(type param,...) &gt; type2.MethodCall2(type param,...) &gt; type1.MethodCall1(type
param,...)
+    /// &lt;/para&gt;
+    /// &lt;/remarks&gt;
+    /// &lt;author&gt;Adam Davies&lt;/author&gt;
+    internal class StackTraceDetailPatternConverter : StackTracePatternConverter
+    {
+        internal override string GetMethodInformation(System.Reflection.MethodBase method)
+        {
+            string returnValue="";
+
+            try
+            {
+                string param = "";
+                string[] names = GetMethodParameterNames(method);
+                StringBuilder sb = new StringBuilder();
+                if (names != null &amp;&amp; names.GetUpperBound(0) &gt; 0)
+                {
+                    for (int i = 0; i &lt;= names.GetUpperBound(0); i++)
+                    {
+                        sb.AppendFormat("{0}, ", names[i]);
+                    }
+                }
+
+                if (sb.Length &gt; 0)
+                {
+                    sb.Remove(sb.Length - 2, 2);
+                    param = sb.ToString();
+                }
+
+                returnValue=base.GetMethodInformation(method) + "(" + param + ")";
+            }
+            catch (Exception ex)
+            {
+                LogLog.Error(declaringType, "An exception ocurred while retreiving method
information.", ex);
+            }
+
+            return returnValue;
+        }
+
+        private string[] GetMethodParameterNames(System.Reflection.MethodBase methodBase)
+        {
+            string[] returnValue = null;
+            try
+            {
+                System.Reflection.ParameterInfo[] methodBaseGetParameters = methodBase.GetParameters();
+                
+                int methodBaseGetParametersCount = methodBaseGetParameters.GetUpperBound(0);
+                Array.Resize(ref returnValue, methodBaseGetParametersCount + 1);
+
+                for (int i = 0; i &lt;= methodBaseGetParametersCount; i++)
+                {
+                    returnValue[i] = methodBaseGetParameters[i].ParameterType + " " + methodBaseGetParameters[i].Name;
+                }
+            }
+            catch (Exception ex)
+            {
+                LogLog.Error(declaringType, "An exception ocurred while retreiving method
parameters.", ex);
+            }
+
+            return returnValue;
+        }
+
+        #region Private Static Fields
+
+        /// &lt;summary&gt;
+        /// The fully qualified type of the StackTraceDetailPatternConverter class.
+        /// &lt;/summary&gt;
+        /// &lt;remarks&gt;
+        /// Used by the internal logger to record the Type of the
+        /// log message.
+        /// &lt;/remarks&gt;
+        private readonly static Type declaringType = typeof(StackTracePatternConverter);
+
+        #endregion Private Static Fields
+    }
+}

Modified: logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs?rev=881069&amp;r1=881068&amp;r2=881069&amp;view=diff
==============================================================================
--- logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs (original)
+++ logging/log4net/trunk/src/Layout/Pattern/StackTracePatternConverter.cs Tue Nov 17 00:20:54
2009
@@ -18,8 +18,6 @@
 #endregion
 
 using System;
-using System.Globalization;
-using System.Text;
 using System.IO;
 using System.Diagnostics;
 
@@ -38,7 +36,7 @@
 	/// &lt;/para&gt;
 	/// &lt;/remarks&gt;
 	/// &lt;author&gt;Michael Cromwell&lt;/author&gt;
-	internal sealed class StackTracePatternConverter : PatternLayoutConverter, IOptionHandler
+	internal class StackTracePatternConverter : PatternLayoutConverter, IOptionHandler
 	{
 		private int m_stackFrameLevel = 1;
 		
@@ -114,14 +112,26 @@
 				}
 				
 				StackFrame stackFrame = stackframes[stackFrameIndex];
-				writer.Write("{0}.{1}", stackFrame.GetMethod().DeclaringType.Name, stackFrame.GetMethod().Name);
+                writer.Write("{0}.{1}", stackFrame.GetMethod().DeclaringType.Name, GetMethodInformation(stackFrame.GetMethod()));
 				if (stackFrameIndex &gt; 0)
 				{
+                    // TODO: make this user settable?
 					writer.Write(" &gt; ");
 				}
 				stackFrameIndex--;
 			}
 		}
+
+                /// &lt;summary&gt;
+        /// Returns the Name of the method
+        /// &lt;/summary&gt;
+        /// &lt;param name="method"&gt;&lt;/param&gt;
+        /// &lt;remarks&gt;This method was created, so this class could be used as a base
class for StackTraceDetailPatternConverter&lt;/remarks&gt;
+        /// &lt;returns&gt;string&lt;/returns&gt;
+        internal virtual string GetMethodInformation(System.Reflection.MethodBase method)
+        {
+            return method.Name;
+        }
 		
 		#region Private Static Fields
 

Modified: logging/log4net/trunk/src/Layout/PatternLayout.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Layout/PatternLayout.cs?rev=881069&amp;r1=881068&amp;r2=881069&amp;view=diff
==============================================================================
--- logging/log4net/trunk/src/Layout/PatternLayout.cs (original)
+++ logging/log4net/trunk/src/Layout/PatternLayout.cs Tue Nov 17 00:20:54 2009
@@ -861,7 +861,8 @@
 			s_globalRulesRegistry.Add("timestamp", typeof(RelativeTimePatternConverter));
 			
 			s_globalRulesRegistry.Add("stacktrace", typeof(StackTracePatternConverter));
-			
+            s_globalRulesRegistry.Add("stacktracedetail", typeof(StackTraceDetailPatternConverter));
+
 			s_globalRulesRegistry.Add("t", typeof(ThreadPatternConverter));
 			s_globalRulesRegistry.Add("thread", typeof(ThreadPatternConverter));
 

Modified: logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs?rev=881069&amp;r1=881068&amp;r2=881069&amp;view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs (original)
+++ logging/log4net/trunk/tests/src/Layout/PatternLayoutTest.cs Tue Nov 17 00:20:54 2009
@@ -69,6 +69,22 @@
 			stringAppender.Reset();
 		}
 
+        [Test]
+        public void TestStackTracePattern()
+        {
+            StringAppender stringAppender = new StringAppender();
+            stringAppender.Layout = new PatternLayout("%stacktrace{2}");
+
+            ILoggerRepository rep = LogManager.CreateRepository(Guid.NewGuid().ToString());
+            BasicConfigurator.Configure(rep, stringAppender);
+
+            ILog log1 = LogManager.GetLogger(rep.Name, "TestStackTracePattern");
+
+            log1.Info("TestMessage");
+            Assert.AreEqual("RuntimeMethodHandle._InvokeMethodFast &gt; PatternLayoutTest.TestStackTracePattern",
stringAppender.GetString(), "stack trace value set");
+            stringAppender.Reset();
+        }
+
 		[Test]
 		public void TestGlobalPropertiesPattern()
 		{




</pre>
</div>
</content>
</entry>
<entry>
<title>svn commit: r881044 - /logging/log4net/trunk/tests/src/Util/LogLogTest.cs</title>
<author><name>rgrabowski@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c20091116232055.E05CE2388901@eris.apache.org%3e"/>
<id>urn:uuid:%3c20091116232055-E05CE2388901@eris-apache-org%3e</id>
<updated>2009-11-16T23:20:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Author: rgrabowski
Date: Mon Nov 16 23:20:55 2009
New Revision: 881044

URL: http://svn.apache.org/viewvc?rev=881044&amp;view=rev
Log:
Called Trace.Flush() to fix failing unit test.

Modified:
    logging/log4net/trunk/tests/src/Util/LogLogTest.cs

Modified: logging/log4net/trunk/tests/src/Util/LogLogTest.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/tests/src/Util/LogLogTest.cs?rev=881044&amp;r1=881043&amp;r2=881044&amp;view=diff
==============================================================================
--- logging/log4net/trunk/tests/src/Util/LogLogTest.cs (original)
+++ logging/log4net/trunk/tests/src/Util/LogLogTest.cs Mon Nov 16 23:20:55 2009
@@ -30,6 +30,7 @@
             Trace.Listeners.Add(listTraceListener);
             LogLog.Error(GetType(), "Hello");
             LogLog.Error(GetType(), "World");
+            Trace.Flush();
             Assert.AreEqual(2, listTraceListener.Count);
 
             LogLog.EmitInternalMessages = false;




</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Assigned: (LOG4NET-154) Add a StackTracePatternConverter to display method calls leading up to log message</title>
<author><name>&quot;Ron Grabowski (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c105778319.1258409619725.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c105778319-1258409619725-JavaMail-jira@brutus%3e</id>
<updated>2009-11-16T22:13:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ron Grabowski reassigned LOG4NET-154:
-------------------------------------

    Assignee: Ron Grabowski

&gt; Add a StackTracePatternConverter to display method calls leading up to log message
&gt; ----------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-154
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-154
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;            Reporter: Ron Grabowski
&gt;            Assignee: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: log4net - StackTrace and StackTraceDetail.zip, StackTracePatternConverter.zip
&gt;
&gt;
&gt; Modify LocationInfo to save StackTrace information and make it available as StackTracePatternConverter
to display call stack leading up to the log message:
&gt;  log.Debug("Item Saved");
&gt;  
&gt;  [%stackTrace{3}] %message%newline
&gt;  [default_aspx.btnSubmit_Click &gt; productController.Save &gt; productService.Save]
Item Saved
&gt; This will probably be a slow pattern converter on par with other LocationInfo derived
pattern converters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-238) Release date for Log4net version 1.2.11...</title>
<author><name>&quot;Paul Freeman (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1476659047.1258368039977.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1476659047-1258368039977-JavaMail-jira@brutus%3e</id>
<updated>2009-11-16T10:40:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Release date for Log4net version 1.2.11...
------------------------------------------

                 Key: LOG4NET-238
                 URL: https://issues.apache.org/jira/browse/LOG4NET-238
             Project: Log4net
          Issue Type: Improvement
            Reporter: Paul Freeman


Hiya, 

I have not been able to find out when the expected release date is scheduled for and it would
be nice if this information was available... even if it was just to say that there are no
plans to release the next version in the next 6 months, etc.  I have searched the web and
found a couple of people asking this question but with no replies.  Hence, I thought this
would be the best place to find out this information... apologies if this question should
be posted elsewhere.

In my particular case I would like to preserve the log file extensions, which according to
the forum has been fixed in 1.2.11.  I would like to get an idea of when this is likely to
be released... shortly, months, years, etc.  I don't want to patch my current version as I
can live without it for the time being, but I need to find out when this is likely to be released...
so I can provide feedback to others on when this new version is available.

Apologies again if this question is misplaced, but I would be very grateful if someone could
just give me an idea of the release date... or if I am just not looking in the right place,
forward me to the relevant place.

Thanks very much in advance for your help!



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-13) Allow SMTPAppender to have replaceable parameters in Subject</title>
<author><name>&quot;rams.rapo (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c466054966.1258303839824.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c466054966-1258303839824-JavaMail-jira@brutus%3e</id>
<updated>2009-11-15T16:50:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-13?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12778124#action_12778124
] 

rams.rapo commented on LOG4NET-13:
----------------------------------

Hi,

I have a similar need in Java application. Can the fix be propagated to log4j implementation
for Java. 
I'm using log4j 1.2.15 and had no luck passing run time parameters in subject line set by
MDC.

&lt;param name="Subject" value="Error from Application. Client IP - [%X{clientIP}], Server
IP - [%X{serverIP}]" /&gt;


&gt; Allow SMTPAppender to have replaceable parameters in Subject
&gt; ------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-13
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-13
&gt;             Project: Log4net
&gt;          Issue Type: Improvement
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.9
&gt;         Environment: From sourceforge - 749620 - Jeremy Wiebe - jeropa
&gt;            Reporter: Nicko Cadell
&gt;             Fix For: 1.2.10
&gt;
&gt;
&gt; It would be helpful to be able to have parameters that
&gt; are replaced on a per-log event basis on the Subject
&gt; line for the SMTPAppender.
&gt; Example:
&gt; I have multiple web servers running a .NET web service
&gt; and all use log4net. When an error occurs, they use the
&gt; SMTPAppender to notify me. It would be very useful to
&gt; include the host name of the sender in the subject line
&gt; so that I could easily determine which web server had
&gt; an error instead of having to look into the email.
&gt; In thinking more about this it could either be the
&gt; Subject line or the From line that has replacable
&gt; parameters. Perhaps even make it so that these
&gt; properties can use the &lt;layout&gt; tag.
&gt; Jeremy Wiebe - jeropa

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Debugging log4net source</title>
<author><name>Omer Mor &lt;omer.mor@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c168f675e0911090838i7eb5bcc0o8181d2d4d9a2b163@mail.gmail.com%3e"/>
<id>urn:uuid:%3c168f675e0911090838i7eb5bcc0o8181d2d4d9a2b163@mail-gmail-com%3e</id>
<updated>2009-11-09T16:38:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I can happily confirm that this version is working great:
It is both debuggable, and compatible with existing assemblies that
reference it.
Ron - thank you very very much!

Omer.

On Mon, Nov 9, 2009 at 1:09 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt;wrote:

&gt; I've contacted Omer off list to have him verify the .pdb file. If its
&gt; correct I'll publish it somewhere.
&gt;
&gt; ------------------------------
&gt; *From:* Omer Mor &lt;omer.mor@gmail.com&gt;
&gt; *To:* Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
&gt; *Sent:* Mon, October 19, 2009 1:09:24 AM
&gt;
&gt; *Subject:* Re: Debugging log4net source
&gt;
&gt; Thanks!
&gt;
&gt; On Mon, Oct 19, 2009 at 5:04 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt;wrote:
&gt;
&gt;&gt; I emailed Nicko asking him what I need to do to get the .snk file onto my
&gt;&gt; system. It looks like the version in source control is encrypted.
&gt;&gt;
&gt;&gt; ------------------------------
&gt;&gt; *From:* Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;&gt; *To:* Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
&gt;&gt; *Sent:* Wed, October 7, 2009 9:01:18 AM
&gt;&gt;
&gt;&gt; *Subject:* Re: Debugging log4net source
&gt;&gt;
&gt;&gt; I'm trying again to get some help from the log4net developers community:
&gt;&gt; I really need to get a release build with pdb.
&gt;&gt; I explained blow exactly what needs to be changed in the nant script to
&gt;&gt; build it this way.
&gt;&gt; It should only take a couple of minutes to do this.
&gt;&gt; I would have done it myself if the assembly signing key would have been
&gt;&gt; public.
&gt;&gt; Maybe if no one is free to compile it, then I could join the log4net dev
&gt;&gt; team, and get permission to access the signing key?
&gt;&gt;
&gt;&gt; Thanks in advance,
&gt;&gt;   Omer Mor.
&gt;&gt;
&gt;&gt; On Wed, Aug 26, 2009 at 5:01 PM, Omer Mor &lt;omer.mor@gmail.com&gt; wrote:
&gt;&gt;
&gt;&gt;&gt; Thanks.
&gt;&gt;&gt; First - you should change the nant script:
&gt;&gt;&gt; In the file &lt;root&gt;\log4net.include line 171 should be changed from:
&gt;&gt;&gt;         &lt;property name="build.debug" value="false" /&gt;
&gt;&gt;&gt; to:
&gt;&gt;&gt;         &lt;property name="build.debug" value="pdbonly" /&gt;
&gt;&gt;&gt; then just run the build script (build.cmd) and the release folder (
&gt;&gt;&gt; &lt;root&gt;\bin\net\2.0\release\) should contain both the dll and pdb files.
&gt;&gt;&gt;
&gt;&gt;&gt; I suggest making the change in the nant script permanent as it does not
&gt;&gt;&gt; affect performance and allows for debugging into log4net source.
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt;   Omer Mor.
&gt;&gt;&gt;
&gt;&gt;&gt; On Wed, Aug 26, 2009 at 5:41 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt;wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Tell me the exact nant command line to run and I'll run it.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;&gt; *From:* Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;&gt;&gt;&gt; *To:* Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
&gt;&gt;&gt;&gt; *Sent:* Sunday, August 23, 2009 11:49:03 AM
&gt;&gt;&gt;&gt; *Subject:* Re: Debugging log4net source
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I would like to ask again the developer community of log4net for a
&gt;&gt;&gt;&gt; signed build of 1.2.10 assembly that was compiled with a PDB file.
&gt;&gt;&gt;&gt; This is the best way for us to enable live debugging of the log4net
&gt;&gt;&gt;&gt; source.
&gt;&gt;&gt;&gt; I believe it would only take a couple of minutes to compile it this way,
&gt;&gt;&gt;&gt; and it would help us tremendously.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks again,
&gt;&gt;&gt;&gt;   Omer Mor (omer.mor@gmail.com)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Fri, Aug 7, 2009 at 12:44 PM, Omer Mor &lt;omer.mor@gmail.com&gt; wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I prefer debugging the situation live.
&gt;&gt;&gt;&gt;&gt; Is it so hard to re-compile 1.2.10 with pdb? It's just a matter of a
&gt;&gt;&gt;&gt;&gt; slight tweak in the project settings.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On Fri, Aug 7, 2009 at 6:12 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt;wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Have you tried specifying a custom error handler on the appender
to
&gt;&gt;&gt;&gt;&gt;&gt; track down when it enters a failed state?
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; &lt;appender name=".." &gt;
&gt;&gt;&gt;&gt;&gt;&gt;   ...
&gt;&gt;&gt;&gt;&gt;&gt;   &lt;errorHandler type="Your.ErrorHandler, YourAssembly" /&gt;
&gt;&gt;&gt;&gt;&gt;&gt; &lt;/appender&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; You would write one that sends an email when the file can't be
&gt;&gt;&gt;&gt;&gt;&gt; created.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; ------------------------------
&gt;&gt;&gt;&gt;&gt;&gt; *From:* Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;&gt;&gt;&gt;&gt;&gt; *To:* log4net-dev@logging.apache.org
&gt;&gt;&gt;&gt;&gt;&gt; *Sent:* Thursday, August 6, 2009 3:02:17 AM
&gt;&gt;&gt;&gt;&gt;&gt; *Subject:* Debugging log4net source
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;&gt; to research a (rare) bug we have with log4net (log file is not being
&gt;&gt;&gt;&gt;&gt;&gt; created) we wanted to debug its source.
&gt;&gt;&gt;&gt;&gt;&gt; However, the release build of 1.2.10 is supplied without a pdb file.
&gt;&gt;&gt;&gt;&gt;&gt; And since it is a signed assembly we can't compile it ourself and
&gt;&gt;&gt;&gt;&gt;&gt; replace it.
&gt;&gt;&gt;&gt;&gt;&gt; Also - the debug build of 1.2.10 is supplied with a pdb, but is not
&gt;&gt;&gt;&gt;&gt;&gt; signed, so it is not substitutable.
&gt;&gt;&gt;&gt;&gt;&gt; What I'd like to ask is that one of the developers compile a release
&gt;&gt;&gt;&gt;&gt;&gt; build of 1.2.10 and enable pdb creation, so that we could debug the
source.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Using a non-signed copy of log4net is not an option for us, because
&gt;&gt;&gt;&gt;&gt;&gt; some of our 3rd-party assemblies are compiled against the signed
1.2.10
&gt;&gt;&gt;&gt;&gt;&gt; log4net assembly.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; The files could be sent irectly to me at omer.mor@gmail.com .
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt;&gt;&gt;&gt;   Omer Mor.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Issue Comment Edited: (LOG4NET-64) [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.</title>
<author><name>&quot;Hakan Lindestaf (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c325626560.1257752132647.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c325626560-1257752132647-JavaMail-jira@brutus%3e</id>
<updated>2009-11-09T07:35:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774883#action_12774883
] 

Hakan Lindestaf edited comment on LOG4NET-64 at 11/9/09 7:35 AM:
-----------------------------------------------------------------

I have a problem with this issue, some of the files are still named in the old format.
Here's what my directory output looks like:
 Volume in drive C has no label.
 Volume Serial Number is 7057-2FE1

 Directory of C:\inetpub\wwwroot\KickService\Logs

11/09/2009  08:32 AM    &lt;DIR&gt;          .
11/09/2009  08:32 AM    &lt;DIR&gt;          ..
11/09/2009  07:56 AM            12,822 Service.log
10/28/2009  11:27 PM           748,549 Service.log20091028
10/29/2009  10:30 PM           738,261 Service.log20091029
11/05/2009  10:42 PM           819,465 Service.log20091105
11/06/2009  11:20 PM           873,142 Service.log20091106
11/07/2009  02:42 PM           148,499 Service.log20091107
11/08/2009  09:06 PM            81,809 Service.log20091108
10/16/2009  10:51 PM           586,003 Service20091016.log
10/20/2009  10:51 PM           654,559 Service20091020.log
10/21/2009  10:46 PM           848,594 Service20091021.log
10/22/2009  10:57 PM         6,586,212 Service20091022.log
10/25/2009  11:51 PM           264,567 Service20091025.log
10/26/2009  11:54 PM           908,770 Service20091026.log
10/27/2009  11:53 PM           426,759 Service20091027.log
10/30/2009  11:54 PM           456,209 Service20091030.log
10/31/2009  11:54 PM            26,600 Service20091031.log
11/01/2009  11:54 PM           153,698 Service20091101.log
11/02/2009  11:48 PM         1,194,835 Service20091102.log
11/03/2009  11:59 PM         2,587,370 Service20091103.log
11/04/2009  11:56 PM           846,138 Service20091104.log
11/09/2009  08:32 AM                 0 x.x
              21 File(s)     18,962,861 bytes
               2 Dir(s)  32,061,755,392 bytes free


See how there is a mix of the output formats. I haven't had a chance to look thru the code
yet. I'm running log4net from svn trunk. Here's my config:
    &lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="C:\Inetpub\wwwroot\Service\Logs\Service.log"/&gt;
      &lt;appendToFile value="true"/&gt;
      &lt;maxSizeRollBackups value="30"/&gt;
      &lt;rollingStyle value="Date"/&gt;
      &lt;staticLogFileName value="true"/&gt;
      &lt;datePattern value="yyyyMMdd"/&gt;
      &lt;preserveLogFileNameExtension value="true"/&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date [%property{SessionId}] %-5level %logger [%property{NDC}]
- %message%newline"/&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;


      was (Author: hakanl):
    I have an issue with this issue, some of the files are still named in the old format.
Here's what my directory output looks like:
 Volume in drive C has no label.
 Volume Serial Number is 7057-2FE1

 Directory of C:\inetpub\wwwroot\KickService\Logs

11/09/2009  08:32 AM    &lt;DIR&gt;          .
11/09/2009  08:32 AM    &lt;DIR&gt;          ..
11/09/2009  07:56 AM            12,822 Service.log
10/28/2009  11:27 PM           748,549 Service.log20091028
10/29/2009  10:30 PM           738,261 Service.log20091029
11/05/2009  10:42 PM           819,465 Service.log20091105
11/06/2009  11:20 PM           873,142 Service.log20091106
11/07/2009  02:42 PM           148,499 Service.log20091107
11/08/2009  09:06 PM            81,809 Service.log20091108
10/16/2009  10:51 PM           586,003 Service20091016.log
10/20/2009  10:51 PM           654,559 Service20091020.log
10/21/2009  10:46 PM           848,594 Service20091021.log
10/22/2009  10:57 PM         6,586,212 Service20091022.log
10/25/2009  11:51 PM           264,567 Service20091025.log
10/26/2009  11:54 PM           908,770 Service20091026.log
10/27/2009  11:53 PM           426,759 Service20091027.log
10/30/2009  11:54 PM           456,209 Service20091030.log
10/31/2009  11:54 PM            26,600 Service20091031.log
11/01/2009  11:54 PM           153,698 Service20091101.log
11/02/2009  11:48 PM         1,194,835 Service20091102.log
11/03/2009  11:59 PM         2,587,370 Service20091103.log
11/04/2009  11:56 PM           846,138 Service20091104.log
11/09/2009  08:32 AM                 0 x.x
              21 File(s)     18,962,861 bytes
               2 Dir(s)  32,061,755,392 bytes free


See how there is a mix of the output formats. I haven't had a chance to look thru the code
yet. I'm running log4net from svn trunk. Here's my config:
    &lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="C:\Inetpub\wwwroot\Service\Logs\Service.log"/&gt;
      &lt;appendToFile value="true"/&gt;
      &lt;maxSizeRollBackups value="30"/&gt;
      &lt;rollingStyle value="Date"/&gt;
      &lt;staticLogFileName value="true"/&gt;
      &lt;datePattern value="yyyyMMdd"/&gt;
      &lt;preserveLogFileNameExtension value="true"/&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date [%property{SessionId}] %-5level %logger [%property{NDC}]
- %message%newline"/&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;

  
&gt; [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension
when rolling the log file.
&gt; -----------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-64
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-64
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.9
&gt;            Reporter: Joshua Bassett
&gt;            Assignee: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-64.patch, LOG4NET-64.patch, patch.txt
&gt;
&gt;
&gt; Normally, when the log file is rolled the file name extension is not preserved.
&gt; For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.
&gt; However, this may not be desired in all cases and it may be necessary to preserve the
log file name extension when the log file is rolled. Most notably, this feature is useful
for maintaining file associations under Windows so that all log files can be associated with
a particaular text viewer.
&gt; For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.
&gt; This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender
class which is used to toggle this behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-64) [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file.</title>
<author><name>&quot;Hakan Lindestaf (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c483372904.1257752132607.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c483372904-1257752132607-JavaMail-jira@brutus%3e</id>
<updated>2009-11-09T07:35:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774883#action_12774883
] 

Hakan Lindestaf commented on LOG4NET-64:
----------------------------------------

I have an issue with this issue, some of the files are still named in the old format.
Here's what my directory output looks like:
 Volume in drive C has no label.
 Volume Serial Number is 7057-2FE1

 Directory of C:\inetpub\wwwroot\KickService\Logs

11/09/2009  08:32 AM    &lt;DIR&gt;          .
11/09/2009  08:32 AM    &lt;DIR&gt;          ..
11/09/2009  07:56 AM            12,822 Service.log
10/28/2009  11:27 PM           748,549 Service.log20091028
10/29/2009  10:30 PM           738,261 Service.log20091029
11/05/2009  10:42 PM           819,465 Service.log20091105
11/06/2009  11:20 PM           873,142 Service.log20091106
11/07/2009  02:42 PM           148,499 Service.log20091107
11/08/2009  09:06 PM            81,809 Service.log20091108
10/16/2009  10:51 PM           586,003 Service20091016.log
10/20/2009  10:51 PM           654,559 Service20091020.log
10/21/2009  10:46 PM           848,594 Service20091021.log
10/22/2009  10:57 PM         6,586,212 Service20091022.log
10/25/2009  11:51 PM           264,567 Service20091025.log
10/26/2009  11:54 PM           908,770 Service20091026.log
10/27/2009  11:53 PM           426,759 Service20091027.log
10/30/2009  11:54 PM           456,209 Service20091030.log
10/31/2009  11:54 PM            26,600 Service20091031.log
11/01/2009  11:54 PM           153,698 Service20091101.log
11/02/2009  11:48 PM         1,194,835 Service20091102.log
11/03/2009  11:59 PM         2,587,370 Service20091103.log
11/04/2009  11:56 PM           846,138 Service20091104.log
11/09/2009  08:32 AM                 0 x.x
              21 File(s)     18,962,861 bytes
               2 Dir(s)  32,061,755,392 bytes free


See how there is a mix of the output formats. I haven't had a chance to look thru the code
yet. I'm running log4net from svn trunk. Here's my config:
    &lt;appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="C:\Inetpub\wwwroot\Service\Logs\Service.log"/&gt;
      &lt;appendToFile value="true"/&gt;
      &lt;maxSizeRollBackups value="30"/&gt;
      &lt;rollingStyle value="Date"/&gt;
      &lt;staticLogFileName value="true"/&gt;
      &lt;datePattern value="yyyyMMdd"/&gt;
      &lt;preserveLogFileNameExtension value="true"/&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%date [%property{SessionId}] %-5level %logger [%property{NDC}]
- %message%newline"/&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;


&gt; [PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension
when rolling the log file.
&gt; -----------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-64
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-64
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Appenders
&gt;    Affects Versions: 1.2.9
&gt;            Reporter: Joshua Bassett
&gt;            Assignee: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: LOG4NET-64.patch, LOG4NET-64.patch, patch.txt
&gt;
&gt;
&gt; Normally, when the log file is rolled the file name extension is not preserved.
&gt; For example, file.log is rolled to file.log.1 or file.log.yyyy-MM-dd.
&gt; However, this may not be desired in all cases and it may be necessary to preserve the
log file name extension when the log file is rolled. Most notably, this feature is useful
for maintaining file associations under Windows so that all log files can be associated with
a particaular text viewer.
&gt; For example, file.log is rolled to file.1.log or file.yyyy-MM-dd.log.
&gt; This patch adds an additional boolean property PreserveLogFileNameExtension to the RollingFileAppender
class which is used to toggle this behavior.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Debugging log4net source</title>
<author><name>Ron Grabowski &lt;rongrabowski@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c446835.88988.qm@web30507.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c446835-88988-qm@web30507-mail-mud-yahoo-com%3e</id>
<updated>2009-11-08T23:09:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I've contacted Omer off list to have him verify the .pdb file. If its correct I'll publish
it somewhere.




________________________________
From: Omer Mor &lt;omer.mor@gmail.com&gt;
To: Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
Sent: Mon, October 19, 2009 1:09:24 AM
Subject: Re: Debugging log4net source


Thanks!


On Mon, Oct 19, 2009 at 5:04 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt; wrote:

&gt;
&gt;I emailed Nicko asking him what I need to do to get the .snk file onto my system. It looks
like the version in source control is encrypted.
&gt;
&gt;
&gt;
&gt;
________________________________
 &gt;From: Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;To: Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
&gt;Sent: Wed, October 7, 2009 9:01:18 AM
&gt;
&gt;Subject: Re: Debugging log4net source
&gt;
&gt;
&gt;
&gt;I'm trying again to get some help from the log4net developers community:
&gt;I really need to get a release build with pdb.
&gt;I explained blow exactly what needs to be changed in the nant script to build it this
way.
&gt;It should only take a couple of minutes to do this.
&gt;I would have done it myself if the assembly signing key would have been public.
&gt;Maybe if no one is free to compile it, then I could join the log4net dev team, and get
permission to access the signing key?
&gt;
&gt;
&gt;Thanks in advance,
&gt;  Omer Mor.
&gt;
&gt;
&gt;On Wed, Aug 26, 2009 at 5:01 PM, Omer Mor &lt;omer.mor@gmail.com&gt; wrote:
&gt;
&gt;Thanks.
&gt;&gt;First - you should change the nant script:
&gt;&gt;In the file &lt;root&gt;\log4net.include line 171 should be changed from:
&gt;&gt;        &lt;property name="build.debug" value="false" /&gt;
&gt;&gt;to:
&gt;&gt;        &lt;property name="build.debug" value="pdbonly" /&gt;
&gt;&gt;&gt;&gt;then just run the build script (build.cmd) and the release folder (&lt;root&gt;\bin\net\2.0\release\)
should contain both the dll and pdb files.
&gt;&gt;
&gt;&gt;
&gt;&gt;I suggest making the change in the nant script permanent as it does not affect performance
and allows for debugging into log4net source.
&gt;&gt;
&gt;&gt;
&gt;&gt;Thanks in advance,
&gt;&gt;  Omer Mor.
&gt;&gt;
&gt;&gt;
&gt;&gt;On Wed, Aug 26, 2009 at 5:41 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt; wrote:
&gt;&gt;
&gt;&gt;Tell me the exact nant command line to run and I'll run it.
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
________________________________
From: Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;&gt;&gt;To: Log4NET Dev &lt;log4net-dev@logging.apache.org&gt;
&gt;&gt;&gt;Sent: Sunday, August 23, 2009 11:49:03 AM
&gt;&gt;&gt;Subject: Re: Debugging log4net source
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;I would like to ask again the developer community of log4net for a
&gt;&gt;&gt; signed build of 1.2.10 assembly that was compiled with a PDB file.
&gt;&gt;&gt;This is the best way for us to enable live debugging of the log4net source.
&gt;&gt;&gt;I believe it would only take a couple of minutes to compile it this way, and it
would help us tremendously.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;Thanks again,
&gt;&gt;&gt;  Omer Mor (omer.mor@gmail.com)
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;On Fri, Aug 7, 2009 at 12:44 PM, Omer Mor &lt;omer.mor@gmail.com&gt; wrote:
&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;I prefer debugging the situation live.
&gt;&gt;&gt;&gt;Is it so hard to re-compile 1.2.10 with pdb? It's just a matter of a slight
tweak in the project settings.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;On Fri, Aug 7, 2009 at 6:12 AM, Ron Grabowski &lt;rongrabowski@yahoo.com&gt;
wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;Have you tried specifying a custom error handler on the appender to track
down when it enters a failed state?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&lt;appender name=".." &gt;
&gt;&gt;&gt;&gt;&gt;  ...
&gt;&gt;&gt;&gt;&gt;  &lt;errorHandler type="Your.ErrorHandler, YourAssembly" /&gt;
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&lt;/appender&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;You would write one that sends an email when the file can't be created.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
________________________________
 &gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;From: Omer Mor &lt;omer.mor@gmail.com&gt;
&gt;&gt;&gt;&gt;&gt;To: log4net-dev@logging.apache.org
&gt;&gt;&gt;&gt;&gt;Sent: Thursday,
&gt;&gt;&gt;&gt;&gt; August 6, 2009 3:02:17 AM
&gt;&gt;&gt;&gt;&gt;Subject: Debugging log4net source
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;Hi,
&gt;&gt;&gt;&gt;&gt;to research a (rare) bug we have with log4net (log file is not being created)
we wanted to debug its source.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;However, the release build of 1.2.10 is supplied without a pdb file.
&gt;&gt;&gt;&gt;&gt;And since it is a signed assembly we can't compile it ourself and replace
it.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;Also - the debug build of 1.2.10 is supplied with
a pdb, but is not signed, so it is not substitutable.
&gt;&gt;&gt;&gt;&gt;What I'd like to ask is that one of the developers compile a release build
of 1.2.10 and enable pdb creation, so that we could debug the source.
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;Using a non-signed copy of log4net is not an option for us, because some
of our 3rd-party assemblies are compiled against the signed 1.2.10 log4net assembly.
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;The files could be sent irectly to me at omer.mor@gmail.com .
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt;&gt;Thanks in advance,
&gt;&gt;&gt;&gt;&gt;  Omer Mor.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-237) URL Referrer Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c852267169.1257716612536.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c852267169-1257716612536-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T21:43:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Davies updated LOG4NET-237:
--------------------------------

    Attachment: log4net - Url Referrer Address.zip

Created AspNetUrlReferrerPatternConverter.

Usage: %aspnet-urlreferrer

&gt; URL Referrer Pattern Converter
&gt; ------------------------------
&gt;
&gt;                 Key: LOG4NET-237
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-237
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - Url Referrer Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Need a URL Referrer Pattern Converter to provide the referring page's URL for the current
request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-237) URL Referrer Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1659961010.1257716372438.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1659961010-1257716372438-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T21:39:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
URL Referrer Pattern Converter
------------------------------

                 Key: LOG4NET-237
                 URL: https://issues.apache.org/jira/browse/LOG4NET-237
             Project: Log4net
          Issue Type: New Feature
          Components: Other
    Affects Versions: 1.2.10
            Reporter: Adam Davies
            Priority: Trivial
             Fix For: 1.2.10


Need a URL Referrer Pattern Converter to provide the referring page's URL for the current
request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-236) Request URL PatternConverter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1170258162.1257713252452.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1170258162-1257713252452-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T20:47:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Davies updated LOG4NET-236:
--------------------------------

    Attachment: log4net - Url Address.zip

Created AspNetUrlPatternConverter.

usage: %aspnet-url

&gt; Request URL PatternConverter
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-236
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-236
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - Url Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Need an URL Pattern Converter to provide the current requested URL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-236) Request URL PatternConverter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c2126371188.1257713132465.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2126371188-1257713132465-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T20:45:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Request URL PatternConverter
----------------------------

                 Key: LOG4NET-236
                 URL: https://issues.apache.org/jira/browse/LOG4NET-236
             Project: Log4net
          Issue Type: New Feature
          Components: Other
    Affects Versions: 1.2.10
            Reporter: Adam Davies
            Priority: Trivial
             Fix For: 1.2.10


Need an URL Pattern Converter to provide the current requested URL.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-235) IP Address Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1430295622.1257652232609.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1430295622-1257652232609-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T03:50:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774716#action_12774716
] 

Adam Davies commented on LOG4NET-235:
-------------------------------------

In order to use this pattern use %aspnet-ipaddress


Example:
  &lt;appender name="DebugAppender" type="log4net.Appender.DebugAppender" &gt;
    &lt;layout type="log4net.Layout.PatternLayout"&gt;
      &lt;conversionPattern value="User: %identity IP: %aspnet-ipaddress%newline" /&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;

&gt; IP Address Pattern Converter
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-235
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-235
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - IP Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Created AspNetIPAddressPatternConverter to provide the client IP Address.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-235) IP Address Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1086538246.1257652112617.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1086538246-1257652112617-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T03:48:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Davies updated LOG4NET-235:
--------------------------------

    Attachment: log4net - IP Address.zip

&gt; IP Address Pattern Converter
&gt; ----------------------------
&gt;
&gt;                 Key: LOG4NET-235
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-235
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;          Components: Other
&gt;    Affects Versions: 1.2.10
&gt;            Reporter: Adam Davies
&gt;            Priority: Trivial
&gt;             Fix For: 1.2.10
&gt;
&gt;         Attachments: log4net - IP Address.zip
&gt;
&gt;   Original Estimate: 0h
&gt;  Remaining Estimate: 0h
&gt;
&gt; Created AspNetIPAddressPatternConverter to provide the client IP Address.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-235) IP Address Pattern Converter</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c1089731177.1257651992650.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1089731177-1257651992650-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T03:46:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
IP Address Pattern Converter
----------------------------

                 Key: LOG4NET-235
                 URL: https://issues.apache.org/jira/browse/LOG4NET-235
             Project: Log4net
          Issue Type: New Feature
          Components: Other
    Affects Versions: 1.2.10
            Reporter: Adam Davies
            Priority: Trivial
             Fix For: 1.2.10


Created AspNetIPAddressPatternConverter to provide the client IP Address.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (LOG4NET-154) Add a StackTracePatternConverter to display method calls leading up to log message</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c2045460231.1257641072438.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2045460231-1257641072438-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T00:44:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/LOG4NET-154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Adam Davies updated LOG4NET-154:
--------------------------------

    Attachment: log4net - StackTrace and StackTraceDetail.zip

&gt; Add a StackTracePatternConverter to display method calls leading up to log message
&gt; ----------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-154
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-154
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;            Reporter: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: log4net - StackTrace and StackTraceDetail.zip, StackTracePatternConverter.zip
&gt;
&gt;
&gt; Modify LocationInfo to save StackTrace information and make it available as StackTracePatternConverter
to display call stack leading up to the log message:
&gt;  log.Debug("Item Saved");
&gt;  
&gt;  [%stackTrace{3}] %message%newline
&gt;  [default_aspx.btnSubmit_Click &gt; productController.Save &gt; productService.Save]
Item Saved
&gt; This will probably be a slow pattern converter on par with other LocationInfo derived
pattern converters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (LOG4NET-154) Add a StackTracePatternConverter to display method calls leading up to log message</title>
<author><name>&quot;Adam Davies (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c2039525106.1257640832389.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2039525106-1257640832389-JavaMail-jira@brutus%3e</id>
<updated>2009-11-08T00:40:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/LOG4NET-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774694#action_12774694
] 

Adam Davies commented on LOG4NET-154:
-------------------------------------

I have further extended the functionality of the StackTracePatternConverter to allow the selection
of min / max frames.

Given: %message%exception%stacktrace{MAX|MIN}

Explantion: {MAX|MIN}
      The MAX controls how deep to display the stacktrace.  MAX displays the first n of the
stacktrace from the top item 
          (stacktrace[0] to stacktrace[n])
          Any int &gt;= 0 will only allow the first x 
      The MIN is optional.  MIN sets the number of stacktrace items to skip from stacktrace[0]
          If MIN is greater than the number of stacktrace items, then no stacktrace will be
displayed.

 Example: %stacktrace{3}, displays       stacktrace[2] &gt; stacktrace[1] &gt; stacktrace[0]
 Example: %stacktrace{5}, displays       stacktrace[4] &gt; stacktrace[3] &gt; stacktrace[2]
&gt; stacktrace[1] &gt; stacktrace[0]
 Example: %stacktrace{3|1}, displays       stacktrace[2] &gt; stacktrace[1] 
 Example: %stacktrace{-1}, displays       stacktrace[n] &gt; stacktrace[n-1] &gt; ... &gt;
stacktrace[1] &gt; stacktrace[0]
 Example: %stacktrace{-1|3}, displays       stacktrace[n] &gt; stacktrace[n-1] &gt; ... &gt;
stacktrace[4] &gt; stacktrace[3]


In addition I have created a new pattern StackTraceDetailPatternConverter.  This pattern inherits
from StackTracePatternConverter, and provides parameter information for each method.

Given: %message%exception%stacktracedetail{MAX|MIN}

 Example: %stacktrace{3}, displays       stacktrace[2](type param, ...) &gt; stacktrace[1](type
param, ...) &gt; stacktrace[0](type param, ...)
 Example: %stacktrace{3|1}, displays       stacktrace[2](type param, ...) &gt; stacktrace[1](type
param, ...)

&gt; Add a StackTracePatternConverter to display method calls leading up to log message
&gt; ----------------------------------------------------------------------------------
&gt;
&gt;                 Key: LOG4NET-154
&gt;                 URL: https://issues.apache.org/jira/browse/LOG4NET-154
&gt;             Project: Log4net
&gt;          Issue Type: New Feature
&gt;            Reporter: Ron Grabowski
&gt;             Fix For: 1.2.11
&gt;
&gt;         Attachments: StackTracePatternConverter.zip
&gt;
&gt;
&gt; Modify LocationInfo to save StackTrace information and make it available as StackTracePatternConverter
to display call stack leading up to the log message:
&gt;  log.Debug("Item Saved");
&gt;  
&gt;  [%stackTrace{3}] %message%newline
&gt;  [default_aspx.btnSubmit_Click &gt; productController.Save &gt; productService.Save]
Item Saved
&gt; This will probably be a slow pattern converter on par with other LocationInfo derived
pattern converters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>LoggingEvent Fix property</title>
<author><name>=?ISO-8859-1?Q?Fran=E7ois_Dumont?= &lt;francois.cppdevs@free.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200911.mbox/%3c4AF49F75.8000203@free.fr%3e"/>
<id>urn:uuid:%3c4AF49F75-8000203@free-fr%3e</id>
<updated>2009-11-06T22:13:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello

	In my company we are using an AsyncAppender for asynchronous logging that we have implemented
ourselves and we are quite happy with it. From the start we had prepared a FixFields property
on this appender so that  user can decide which fields has to be fixed by the appender before
 passing it to nested appenders. The default value for this property is Partial.

	I recently try to use it so that most of the logging event formatting is done in the logging
thread rather than in the thread that generate the log event. So I change the FixFields value
to ThreadName and discovered that it has an impact on the job performed by nested appenders.
For instance when I log an exception through a ConsoleAppender nested in a AsyncAppender I
have normally the following result:

ERROR Exception raised
System.ApplicationException: FOO
     AsyncAppenderTest.Program.ThrowException() dans C:\Dev\AsyncAppenderTest\AsyncAppenderTest\Program.cs:ligne
69
     AsyncAppenderTest.Program.Main(String[] args) dans C:\Dev\AsyncAppenderTest\AsyncAppenderTest\Program.cs:ligne
40

Once I changed the FixFields to simply ThreadName I had:

ERROR Exception raised

As you can see the log of the exception has disappeared. This is so with or without the %exception
in the PatternLayout.

	The problem is in the LoggingEvent class. It looks like you cannot partially fix a LoggingEvent.
Once you fix some fields using the Fix property m_cacheUpdatable is set to false and when
the LoggingEvent  reference is pass to the ConsoleAppender which call GetExceptionString this
method return an empty string because m_cacheUpdatable is false. What is m_cacheUpdatable
for exactly ? It looks like the intention is to avoid the same field to be fixed several time
but as all fields default value in LoggingEventData is null and is not null anymore once fixed
it seems enough to avoid the multiple fixes situation. Couldn't be LoggingEvent.m_cacheUpdatable
simply removed ?

Thanks



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (LOG4NET-234) RollingFileAppender generates incorrect file name</title>
<author><name>&quot;Miroslav Vanicky (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-dev/200910.mbox/%3c640168173.1256751239453.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c640168173-1256751239453-JavaMail-jira@brutus%3e</id>
<updated>2009-10-28T17:33:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
RollingFileAppender generates incorrect file name
-------------------------------------------------

                 Key: LOG4NET-234
                 URL: https://issues.apache.org/jira/browse/LOG4NET-234
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: Windows XP, Windows 2003
            Reporter: Miroslav Vanicky


I have Appender defined as follow...

&lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" &gt;
    &lt;file value="Logs\Log" /&gt; &lt;!-- Základní název souboru --&gt;
    &lt;appendtofile value="true" /&gt;
    &lt;rollingstyle value="Date" /&gt; &lt;!-- Soubory budou vznikat na základě datumu/času
logu --&gt;
    &lt;datepattern value="_yyyy-MM-dd.\tx\t"/&gt; &lt;!-- Maska pro název souboru (to .\tx\t
tam musí být, aby byla přípona .txt)--&gt;
    &lt;StaticLogFileName value="false" /&gt; &lt;!-- Už první vzniklý soubor bude mít
název obsahující datum. Jinak by logoval stále do jednoho stejného souboru a ten by v
případě potřeby (změna datumu) přejmenoval --&gt;

    &lt;!-- Co a jak bude formátováno ve výstupu.
    Seznam všech dostupných %proměnných je na: http://logging.apache.org/log4net/release/sdk/log4net.Layout.PatternLayout.html

    Na stejné stránce dole je popsáno i co znamená to -5level apod. --&gt;
    &lt;layout type="log4net.Layout.PatternLayout"&gt;
      &lt;conversionpattern value="%date [%-5level] - %message%newline"&gt;&lt;/conversionpattern&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;

This Appender should generate file names like "Log_2009-10-15.txt", mostly it works fine,
but in some unknown situations it generates file named "Log_2009-10-15.txt_2009-10-15.txt".
It seems to me that this happens when there were no log-files and the incorrectly named file
was the first log-file generated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
</feed>
