<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.comp.log.log4net.user">
    <title>gmane.comp.log.log4net.user</title>
    <link>http://blog.gmane.org/gmane.comp.log.log4net.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3761"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3760"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3738"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3736"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3731"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3730"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3724"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3721"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3720"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3717"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3710"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3709"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3708"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3706"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3705"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3703"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3702"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3700"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3697"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3696"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3761">
    <title>RollingFileAppender datePattern</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3761</link>
    <description>I have a RollingFileAppender defined as:

  &lt;appender name="XMLRollingFile" type="log4net.Appender.
RollingFileAppender"&gt;
    &lt;threshold value="DEBUG" /&gt;
    &lt;staticLogFileName value="true" /&gt;
    &lt;file value="MyLog.xml" /&gt;
    &lt;appendToFile value="true" /&gt;
    &lt;rollingStyle value="Date" /&gt;
    &lt;datePattern value="yyyyMMdd" /&gt;
    &lt;maxSizeRollBackups value="30" /&gt;
    &lt;maximumFileSize value="20MB" /&gt;
    &lt;layout type="log4net.Layout.XmlLayoutSchemaLog4j"&gt;
      &lt;locationInfo value="true" /&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;

Is there a trick to getting the backup files to be named MyLog-yyyyMMdd.xml
as opposed to MyLog.xmlyyyyMMdd?

Having staticLogFileName == false and log files named MyLog-yyyyMMdd.xml
would also be cool!!


Thanks,

Bill
</description>
    <dc:creator>Bill McCormick</dc:creator>
    <dc:date>2008-10-06T21:55:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3760">
    <title>RollingFileAppender datePattern</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3760</link>
    <description>I have a RollingFileAppender defined like so:

  &lt;appender name="XMLRollingFile"
type="log4net.Appender.RollingFileAppender"&gt;
    &lt;threshold value="DEBUG" /&gt;
    &lt;staticLogFileName value="true" /&gt;
    &lt;file value="MyLog.xml" /&gt;
    &lt;appendToFile value="true" /&gt;
    &lt;rollingStyle value="Date" /&gt;
    &lt;datePattern value="yyyyMMdd" /&gt;
    &lt;maxSizeRollBackups value="30" /&gt;
    &lt;maximumFileSize value="20MB" /&gt;
    &lt;layout type="log4net.Layout.XmlLayoutSchemaLog4j"&gt;
      &lt;locationInfo value="true" /&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;

Is there a trick to getting the backup files to be named MyLog-yyyyMMdd.xml
as opposed to MyLog.xmlyyyyMMdd?

Having staticLogFileName == false and log files named MyLog-yyyyMMdd.xml
would also be cool!!


Thanks,

Bill
</description>
    <dc:creator>Bill McCormick</dc:creator>
    <dc:date>2008-10-06T21:53:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3738">
    <title>Log4net in a windows service</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3738</link>
    <description>Hi,

I have a logging DLL which uses log4net to log to a database. I have c#
application which calls this logging DLL and log to the database. Within
my logging DLL I perform additional work and hence it acts as a wrapper
for log4net.

 

In my C# windows service project, in assemblyinfo.cs I added 

 

Assembly:
log4net.Config.XmlConfigurator(ConfigFile:="mywindowsservice.dll.config"
, Watch:=True)

 

This config file is where I set the appeneder. If I run my unit test it
seems to work but it does not work in as a windows service. I am using
system admin privileges so it is not an issue of previlige.

 

Any thoughts?

</description>
    <dc:creator>Jeegnesh Sheth</dc:creator>
    <dc:date>2008-10-03T13:57:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3736">
    <title>Out of the office</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3736</link>
    <description>
I will be out of the office starting  10/02/2008 and will not return until
10/06/2008.

I will respond to your message upon my return.


The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. The postal address for PNC is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to unsubscribe. https://pnc.p.delivery.net/m/u/pnc/uni/p.asp By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing 
 list will not affect your subscription to alerts, e-newsletters or account servicin</description>
    <dc:creator>harry.douglass&lt; at &gt;pnc.com</dc:creator>
    <dc:date>2008-10-02T21:28:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3731">
    <title>Replacing text in log messages</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3731</link>
    <description>Hello,

I am trying to replace certain text strings in log messages, based on  
a regular expression. The goal is to prevent sensitive information  
being logged.

Is there any easy way of doing this?

I have so far tried to write a simple implementation of the  
IObjectRenderer as  a small end to end test

namespace Log4netRegexpRenderer
{
     public class RegexpObjectRenderer : IObjectRenderer
     {
         /// &lt;summary&gt;
         /// Proceed to rendering for a given object.
         /// &lt;/summary&gt;
         public string DoRender(RendererMap rendererMap, object obj)
         {
             return "Yeah, we're getting somehwere";
         }
     }
}

Then adding this to log4net.config:


     &lt;renderer  
renderingClass="Log4netRegexpRenderer.RegexpObjectRenderer,  
Log4netRegexpRenderer" renderedClass="System.String, mscorlib" /&gt;

When I set the internal debug property in log4net to true, I can see  
that my assembly is pickedup and that there indeed is initialized an  
instance of my RegexpObjectRenderer</description>
    <dc:creator>Lars Bjønnes</dc:creator>
    <dc:date>2008-10-02T18:44:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3730">
    <title>Composite rollingStyle</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3730</link>
    <description>Hello,

The Composite rollingStyle doesn't seem to work for the FileAppender as it
does for the RollingFileAppender. That is, I have one TrittiSvcLog.xml file
that keeps getting bigger and bigger but I have a current TrittiSvcLog.txt
and a TrittiSvcLog.txt20081001 from yesterday. Also, is there a way to have
the file be named TrittiSvcLog-20081001.txt instead?


Thanks,

Bill



 &lt;appender name="FileAppender" type="log4net.Appender.FileAppender"&gt;
    &lt;threshold value="DEBUG" /&gt;
    &lt;file value="Logs/TrittiSvcLog.xml" /&gt;
    &lt;appendToFile value="true" /&gt;
    &lt;rollingStyle value="Composite" /&gt;
    &lt;datePattern value="yyyyMMdd" /&gt;
    &lt;maxSizeRollBackups value="30" /&gt;
    &lt;maximumFileSize value="100MB" /&gt;
    &lt;layout type="log4net.Layout.XmlLayoutSchemaLog4j"&gt;
      &lt;locationInfo value="true" /&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;appender name="RollingFile" type="log4net.Appender.RollingFileAppender"&gt;
    &lt;threshold value="INFO" /&gt;
    &lt;file value="Logs/TrittiSvcLog.txt" /&gt;
    &lt;appendToFile value="true" /&gt;
    &lt;ro</description>
    <dc:creator>Bill McCormick</dc:creator>
    <dc:date>2008-10-02T18:39:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3724">
    <title>custom fields?</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3724</link>
    <description>Hello,

Is it possible to add custom fields to log4net. I'd like to be able to do
something like this:

log.InfoFormat("Custom1", "Custom2", "Custom3", "{0}","Message");

and then have an appender look something like:

&lt;layout type="log4net.Layout.PatternLayout"&gt;
  &lt;conversionPattern value="%custom1 %custom2 %custom3 %message%newline" /&gt;
&lt;/layout&gt;


Thanks,

Bill
</description>
    <dc:creator>Bill McCormick</dc:creator>
    <dc:date>2008-10-02T16:39:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3721">
    <title>Chained loggers</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3721</link>
    <description>Hi,

I'm trying to create a chained logger according to the following logic:

if ( condition1 == true &amp;&amp; condition2 == true )
{
 accept
}

How can this be specified in XML?

Here is what I have tried:

&lt;appender name="SupportToolAppender"
             type="log4net.Appender.AdoNetAppender"&gt;
     &lt;filter type="log4net.Filter.PropertyFilter"&gt;
       &lt;acceptOnMatch value="false" /&gt;
       &lt;key value="eventid" /&gt;
       &lt;regexToMatch value="\d+" /&gt;
       &lt;next type="log4net.Filter.LevelRangeFilter"&gt;                  
&lt;acceptOnMatch value="true" /&gt;
         &lt;levelMin value="INFO" /&gt;
         &lt;levelMax value="FATAL" /&gt;
       &lt;/next&gt;
     &lt;/filter&gt;
     &lt;filter type="log4net.Filter.DenyAllFilter" /&gt;
     ...
&lt;/appender&gt;

I guess more specifically my question is how the "next" property can be 
used to define the next logger in the chain. The above doesn't seem to 
work. I've tried some other things such as:

&lt;next&gt;
 &lt;filter ...&gt;
   ...
 &lt;/filter&gt;
&lt;/next&gt;

... but that doesn't work either.

I don't see any document</description>
    <dc:creator>Daniel Bigham</dc:creator>
    <dc:date>2008-10-01T21:27:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3720">
    <title>Out of the office</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3720</link>
    <description>
I will be out of the office starting  09/25/2008 and will not return until
09/29/2008.

I will respond to your message upon my return.


The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. This message may contain an advertisement of a product or service and thus may constitute a commercial electronic mail message under US Law. The postal address for PNC is 249 Fifth Avenue, Pittsburgh, PA 15222. If you do not wish to receive any additional advertising or promotional messages from PNC at this e-mail address, click here to unsubscribe. https://pnc.p.delivery.net/m/u/pnc/uni/p.asp By unsubscribing to this message, you will be unsubscribed from all advertising or promotional messages from PNC. Removing your e-mail address from this mailing 
 list will not affect your subscription to alerts, e-newsletters or account servicin</description>
    <dc:creator>harry.douglass&lt; at &gt;pnc.com</dc:creator>
    <dc:date>2008-09-27T21:39:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3717">
    <title>roll over does not happen when iis application pool recycle</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3717</link>
    <description>hi, guys

the hourly roll over is OK most of the time; only for one hour when the server's application pool recycle the expected roll over file never shows up.

for example:
mylog.20080901-00
mylog.20080901-01
mylog.20080901-02
mylog.20080901-03 &lt;- this one never shows up and iis recycle happens at 03:XX
mylog.20080901-04
...

any idea?

thanks,
rao


      

</description>
    <dc:creator>Guanrao Chen</dc:creator>
    <dc:date>2008-09-23T20:03:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3710">
    <title>logger and app domains</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3710</link>
    <description>Ce message et ses pièces jointes (le "message") est destiné à l'usage    
exclusif de son destinataire.                                            
Si vous recevez ce message par erreur, merci d'en aviser immédiatement   
l'expéditeur  et de le détruire ensuite. Le présent message  pouvant  
être altéré à notre insu,  CALYON Crédit Agricole CIB                              
ne peut pas être engagé par son contenu. Tous droits réservés. 
          
This message and/or any  attachments (the "message") is intended for     
the sole use of its addressee.                                            
If you are not the addressee, please immediately notify the sender and    
then destroy the message.  As this message and/or any attachments may 
have been altered without our knowledge,  its content  is not legally 
binding on CALYON Crédit Agricole CIB. All rights reserved.                                                                
</description>
    <dc:creator>Graham Walsh</dc:creator>
    <dc:date>2008-09-18T13:50:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3709">
    <title>RollingFileAppender generates unexpected filename and/or causes IIS to hang</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3709</link>
    <description>We are using rolling file appender in an IIS managed C# application. Our
log4Net deployment is configured with the following options specified in
basic.xml: &lt;appendToFile value="false" /&gt; &lt;countDirection value="0" /&gt;
&lt;maximumFileSize value="512KB" /&gt; &lt;maxSizeRollBackups value="100" /&gt;
&lt;rollingStyle value="Once" /&gt; &lt;staticLogFileName value="false" /&gt;. The
file pattern for our log file name is
"abc_%date{yyyyMMdd_HHmmss}_%processid_.log".

We have observed in our production environment that occasionally
filenames would be created with patterns like
"abc_%date{yyyyMMdd_HHmmss}_%processid_.log.1",
"abc_%date{yyyyMMdd_HHmmss}_%processid_.log.1.2",
"abc_%date{yyyyMMdd_HHmmss}_%processid_.log.1.2.3", etc. We have
observed filenames with the dot+sequential numbers pattern after the
.log to be anything from ".1" to ".220". This is one of two unexpected
behaviours observed.
 
The second unexpected behaviour seems to a special case of the first
that occasionally causes IIS to hang (100% CPU consumption). An analysis
of</description>
    <dc:creator>Iyer, Devan</dc:creator>
    <dc:date>2008-09-16T20:08:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3708">
    <title>Problems with NUnit and log4net</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3708</link>
    <description>Hi,

We are using log4net in conjunction with NUnit and MSBuild.

We are testing a cache implementation which requires the usage of
log4net and Common Logging (from the Spring Framework).  

When running unit tests, each invocation of a test case which causes a
log entry to be created in turn causes log4net to blow up on the trace
with the following:

log4net:ERROR [TraceAppender] Failed in DoAppend
System.Threading.ThreadAbortException: Thread was being aborted.
   at
System.Diagnostics.StackTrace.GetStackFramesInternal(StackFrameHelper
sfh, Int32 iSkip, Exception e)
   at System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip,
Boolean fNeedFileInfo, Thread targetThread, Exception e)
   at log4net.Core.LocationInfo..ctor(Type
callerStackBoundaryDeclaringType)
   at log4net.Core.LoggingEvent.get_LocationInformation()
   at
log4net.Layout.Pattern.MethodLocationPatternConverter.Convert(TextWriter
writer, LoggingEvent loggingEvent)
   at log4net.Layout.Pattern.PatternLayoutConverter.Convert(TextWriter
writ</description>
    <dc:creator>Chris Smith</dc:creator>
    <dc:date>2008-09-16T09:05:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3706">
    <title>Getting RollingLogFileAppender to write to Windows LocalAppData directory</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3706</link>
    <description>
Hello

I configured the RollingLogFileAppender in my application .config file
hoping that it would write my log file into the windows users local app data
directory. 


What I did not realize is that ${LOCALAPPDATA} is a Vista only environmental
key and it's failure to resolve on XP machines caused unexplainable
performance issues. 

Can another tell me if there is a recommended way to get the
RollingLogFileAppender to write the log file to the user's local app data
directory?

Many thanks,
John Paul O'Gorman
</description>
    <dc:creator>JP O'Gorman</dc:creator>
    <dc:date>2008-09-12T11:05:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3705">
    <title>Problems with RollingFileAppender while using it with AsyncAppender</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3705</link>
    <description>
Hello,

I am using an AsyncAppender with a RollingFileAppender.  The problem I am
having is that the rolling file appender will not roll to another file when
attached to the AsyncAppender.  The rollingfileappender works fine by
itself.  Why does the RollingFileAppender not work with AsyncAppender? Any
clues’ to why....

Dawn

</description>
    <dc:creator>DawnC</dc:creator>
    <dc:date>2008-09-11T19:27:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3703">
    <title>GAC vs. XmlHierarchyConfigurator Problem</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3703</link>
    <description>I've found a few posts on Google about this issue, but none seem to be
the exact problem I'm having.
When I started adding log4net to some of my projects, I just added a
reference to the dll, which was then copied to the output directory.
I added this following code to my AssemblyInfo file, setup the
app.config and everything worked like a champ.

  &lt;Assembly: log4net.Config.XmlConfigurator(Watch:=True)&gt; 

I then installed log4net into the GAC on the servers and then on my
machine and removed all copies from bin. Everything compiles, and even
runs fine, but nothing is logged.

After turning on log4net internal debug logging,. I see the text below
in the log4net trace.

Clearly, It's loading log4net from the GAC to start with, but then
stalls out during the XmlHierarchyConfigurator part of the process.
Any ideas?

Of course, if I place a copy in bin, it works; thus defeating the
purpose of installing it into the GAC.

-=Chris

---
log4net: log4net assembly [log4net, Version=1.2.10.0, Culture=neutral,
PublicKe</description>
    <dc:creator>CLaco&lt; at &gt;SummitRacing.com</dc:creator>
    <dc:date>2008-09-10T16:44:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3702">
    <title>logging from dll and application using sample app</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3702</link>
    <description>
Hello,

I am currently using you example the SimpleApp to log to different files for
the application and dll, which I need to do in my application.  I used a
rolling file appender with two different names.  What happens is that the
two files get created but the first file will end up into the dlls file
which I do not think should happen.  I would think that the main application
should keep logging to its file and the dll should log to the file that it
created.  Below is the configuration log4net file, output into the two log
files and the debugger output.  How do I get the dll and application to log
into different files?

Please Help Thanks,
Dawn


Below: configuration.log4net files:

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;!-- This section contains the log4net configuration settings --&gt;
&lt;log4net&gt;
                &lt;!-- Define some output appenders --&gt;                
                &lt;appender name="ConsoleAppender"
type="log4net.Appender.ConsoleAppender" &gt;
                                &lt;layout type="log4n</description>
    <dc:creator>DawnC</dc:creator>
    <dc:date>2008-09-09T01:51:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3700">
    <title>Additivity flag question</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3700</link>
    <description>Hello,
I'd like to control the Additivity flag programmatically. I know that it 
can be changed from the config file but want to change it within a 
program. The flag is a parameter of the Logger class but not on the ILog 
interface. If possible, what's the preferred method of doing this?
Thanks in advance,
Mark


</description>
    <dc:creator>Mark Willis</dc:creator>
    <dc:date>2008-09-02T11:03:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3697">
    <title>Database logging problems</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3697</link>
    <description>Hi,

 

I've been playing with log4net and writing to file seems to work okay
=20 but when I try logging to a database nothing happens...

 

To explain a little more... I'm running a trace on the database and I
=20 can see that it's trying to commit a transaction but it's not =20
resulting in any writes. I was playing with this for hours yesterday,
=20 turned on the machine this morning and there were some rows in the
=20 database. I've played around this morning (should have submitted at
=20 least 30 logs from the same page (that worked last night)) and only
=20 one of them has come through.

 

Is there some sort of buffer? The writing to db seems to be a little =20
erratic (I've no way to predict how often it writes) is there anything
=20 I can do to sort this out?

 

Cheers!

 

</description>
    <dc:creator>Marc McGinley</dc:creator>
    <dc:date>2008-09-02T09:43:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3696">
    <title>Question about using log4net with chainsaw</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3696</link>
    <description>Hi

I'm using log4net and would like display log messages with apache
chainsaw.
For this reason I've added an UDPAppender. I got it to work but there
still exists a problem.
All messages are displayed in chainsaw in the default table. 
Because I have a lot of instances of my App running, I want to show the
log messages of each instance in its own table in apache chainsaw.
I read in the Tutorial that there is a property that is responsible in
which table the log message appears in chainsaw.
The name of this property is "application";
How can I add this property to my log-messages in log4net?
I'd like to do that programmatically.

I appreciate your help.

Best regards,
Philipp Uhlmann
 



</description>
    <dc:creator>Philipp Uhlmann</dc:creator>
    <dc:date>2008-09-01T06:54:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3695">
    <title>Visual Basic 2008 app.config errors...</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3695</link>
    <description>Hi everyone,

I've a project in vb.net 2008 running, and i added log4net to it.

It was an issue to sort out what to do to add logging to the project but 
nothing special that some google couldn't help sort out.

The bigger issues where mainly what to add to app.config:

&lt;configuration&gt;
  &lt;configSections&gt;
    &lt;section name="log4net" 
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, 
Version=1.2.9.0, Culture=neutral, PublicKeyToken=b32731d11ce58905" /&gt;
  &lt;/configSections&gt; 
  &lt;log4net debug="true"&gt;
    &lt;appender name="RollingLogFileAppender" 
type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="C:\\TestLog.txt" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;rollingStyle value="Size" /&gt;
      &lt;maxSizeRollBackups value="10" /&gt;
      &lt;maximumFileSize value="10MB" /&gt;
      &lt;staticLogFileName value="true" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%-5p %d %5rms %-22.22c{1} %-18.18M - 
%m%n" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
    &lt;root&gt;
      &lt;le</description>
    <dc:creator>kindaian&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2008-08-31T23:48:46</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.log.log4net.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.log.log4net.user</link>
  </textinput>
</rdf:RDF>
