<?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/3661"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3659"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3658"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3657"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3654"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3646"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3645"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3643"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3642"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3641"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3640"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3639"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3638"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3635"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3632"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3629"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3628"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3626"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3623"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.log.log4net.user/3622"/>
      </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/3661">
    <title>Logging from two dlls interop</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3661</link>
    <description>
Hye.
I wanted to trace my functions by logging some informations. So i developped
two dlls (.net interop) wich use log4net for logging. 
when i execute one of the dlls from asp page, logging is working fine. But
when i wanted to use both in the same page with "createObject("Dll1.object)
and createObject("Dll2.object") i encounter problems.
The problem is a little bitte weard, all functions with the same name in
these two dlls , the logs is automatically logged in the last dll
instantied.
Example(c#)

Dll1 : 

public void foo(){
 log.Info("Hello it's me");
}

Dll2 : 

public void foo(){
 log.info("Hello it's not me!");
}

ASP page : 

&lt;% 
set ob = server.createObject("Dll1.object");
set ob1 = server.createObject("Dll2.object");
ob.foo()
%&gt;
So as result i get the log file of dll2 modified with this content :
"Hello it's not me!"
and the log file of dll1 is not modified.
And to finish, logging is working fine for the function wich has different
name in these two dlls.

I don't know if i explain well, but in all cases i am sorry for my english.

Thank you in advance

</description>
    <dc:creator>Alaks</dc:creator>
    <dc:date>2008-08-07T11:20:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3659">
    <title>Raj Muchhala is out of the office.</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3659</link>
    <description>
I will be out of the office starting Thu 08/07/2008 and will not return
until Fri 08/08/2008.



**************************************************************************************
This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof.

Thank you.
**************************************************************************************

</description>
    <dc:creator>raj.muchhala&lt; at &gt;assurant.com</dc:creator>
    <dc:date>2008-08-07T09:02:09</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3658">
    <title>ASP.NET, AdoNetAppender and deferred property execution</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3658</link>
    <description>Hi Everyone,
I am seeing a problem here which I believe is due to deferred property
execution. I have a ClientLogger which gets a property value from the
HttpSession as below.

    public class ClientLogger {
        public override string ToString() {
            string retval = "-";
            if (HttpContext.Current != null &amp;&amp; HttpContext.Current.Session
!= null &amp;&amp; HttpContext.Current.Session["client"] != null)
                retval = (string)HttpContext.Current.Session["client"];
            return retval;
        }
    }

My log4net is configured with an AdoNetAppender which of course is a
BufferingAppender.

&lt;appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender"&gt;
    &lt;bufferSize value="100" /&gt;
    &lt;connectionType value="blah..." /&gt;
    &lt;connectionString value="blah..." /&gt;
    &lt;commandText value="INSERT INTO blah..." /&gt;
    ... ...
    &lt;parameter&gt;
      &lt;parameterName value="&lt; at &gt;client" /&gt;
      &lt;dbType value="String" /&gt;
      &lt;size value="100" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%property{client}" /&gt;
      &lt;/layout&gt;
    &lt;/parameter&gt;
    ... ...
  &lt;/appender&gt;

The problem is, when I look in my database I and compare the rows there with
what I see in my log file (generated from RollingFileAppender) I can see
that the property values for "client" do not match. I presume this is
because my ClientLogger is not being called until the AdoNetAppender's
buffer is flushed.

Can anyone confirm if my diagnosis is correct, and, if so, is there a way to
have these properties evaluated when the log statement is executed, rather
than at flush time?

Thanks, Jerry
</description>
    <dc:creator>Jerry Shea</dc:creator>
    <dc:date>2008-08-07T08:12:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3657">
    <title>Adding properties to a logging event</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3657</link>
    <description>I'm trying to add properties to a logging event so that the adoAppender can=pick up these properties and use them in the insert SQL statement.

I've followed the example of creating a loggingEvent, but for the life of me, I can't figure out what the callStackBoundaryDeclaringType would be. Can someone help me figure out what the first parameter is to pass to the LoggingEvent constructor?

Also, is there a simpler way to add event specific context so that the appender can pick up the properties? I know I can use MDC or NDC or thread context or global context, but these are properties that are specific to the event, not those larger contexts.

My code fragment is as follows:



log4net.Core.LoggingEvent loggingEvent =3D new log4net.Core.LoggingEvent(ca= llerStackBoundaryDeclaringType,

log.Logger.Repository,

log.Logger.Name,

log4net.Core.Level.Info,

"This is a Message",

new Exception());

loggingEvent.Properties["Additional"] =3D "Additional info";

log.Logger.Log(loggingEvent);
</description>
    <dc:creator>Michael Richman</dc:creator>
    <dc:date>2008-08-06T19:03:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3654">
    <title>log text wrap</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3654</link>
    <description>
Is there a way to wrap the text in my log.  I can't find anything in the
appender yet.

Mackenzie Funai

Developer - Supporting Technologies
Computer Sciences Corporation
8616 Freeport Parkway St. 2B
Irving, TX 75063
469-499-8521


Computer Sciences Corporation
Registered Office: 3170 Fairview Park Drive, Falls Church, Virginia 22042,
USA
Registered in Nevada, USA No: C-489-59

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

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------



</description>
    <dc:creator>Mackenzie B Funai</dc:creator>
    <dc:date>2008-08-05T18:43:42</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3646">
    <title>Excluding stack trace from Layout</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3646</link>
    <description>
Hi,

I have tried to search for an answer here and tried to understand the
documentation but can't say I have been successful.

I'm using this configuration value for the layout pattern:

&lt;layout type="log4net.Layout.PatternLayout"&gt;
&lt;conversionPattern value="%date %newline [%thread] %newline %-5level :
%message %newline" /&gt;
&lt;/layout&gt;

This is too much information.  I don't want the stack trace, only
exception.messge and exception.InnerException.

How do I specify that in the layout?  

Thanks in advance for helping.

Habib
</description>
    <dc:creator>Hsalim</dc:creator>
    <dc:date>2008-07-30T14:11:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3645">
    <title>NUnit + Log4Net Config Error</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3645</link>
    <description>
When I compile my website using Visual Web Developer, it builds with no
problems. I created the DLL using the aspnet_compiler on the command line
and send that to NUnit. When I try to run my unit tests, I keep getting this
error: 

log4net:ERROR XmlConfigurator: Failed to find configuration section
'log4net' in the application's .config file. Check your .config file for the
&lt;log4net&gt; and &lt;configSections&gt; elements. The configuration section should
look like: &lt;section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;

Here's snippet from my web.config file:

&lt;configSections&gt;
    &lt;!-- Configure Log4Net--&gt;
    &lt;section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
&lt;!-- Configure NHibernate --&gt;
&lt;section name="nhibernate"
type="System.Configuration.NameValueSectionHandler, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/&gt;

&lt;!-- Configure UrlRewriter --&gt;
&lt;section name="rewriter" requirePermission="false"
type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler,
Intelligencia.UrlRewriter"/&gt;
&lt;/configSections&gt;
&lt;!-- NHibernate settings--&gt;
&lt;nhibernate configSource="config\nhibernate.xml"/&gt;
&lt;!-- Log4Net Settings --&gt;
  &lt;log4net configSource="config\log4net.xml"&gt;
  &lt;/log4net&gt;

Every solution I've seen on other forums says to add something to the
AssemblyInfo.cs, but since my project is a website, I don't have it. 

I've tried everything, but I can't seem the figure out what the cause of
this error is. Please help.

</description>
    <dc:creator>smdenis</dc:creator>
    <dc:date>2008-07-30T03:37:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3643">
    <title>more loggers vs. more appenders</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3643</link>
    <description>Hi,

I need to output to distinct files the events of distinct classes in my
application.

I have two options:

Configure a logger (with only one appender inside and with the additivity
set to false) for each class.

Leave a unique logger (the root logger) and add one appender to this logger
for each class, then use a LoggerMatchFilter (in the appenders) to drop the
logging event if the class is not the specified.

I don't know the underlying stuffs and cannot decide which one is better (if
there is place for this question) or side effects of choosing one.

I wonder if any of you have made such a configuration and can tell something
about.

Thanks in advance,

-Freddy
</description>
    <dc:creator>Freddy Gómez</dc:creator>
    <dc:date>2008-07-29T19:22:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3642">
    <title>Change the logging directory at runtime</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3642</link>
    <description>Hi,

I'm planning to use log4net to write events in a removable usb memory.

As you can suppose I have problems setting the right path for the logging
file in the removable drive, there is no warranty about the drive where the
memory will be mounted each time; and the application, depending on its
state, it can be using different removable memories at different times.

I wonder if there is any way of setting the file path of the FileAppender or
RollingFileAppender at runtime.

Thanks in advance,

Freddy.
</description>
    <dc:creator>Freddy Gómez</dc:creator>
    <dc:date>2008-07-29T18:58:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3641">
    <title>Change the name of the log file</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3641</link>
    <description>
Hi,
 
My version of log4net is quite old (1.1...), and i cannot change it.
I would like ton change the name of the file before using it if necessary.
 
More precisely, i would like to change the name of the log file before calling "GetLogger".
How can I? 
Perhaps i can use the function "SetFile", but i cannot reach it on my code.
 
Thanks,
 
Best Regards,
 
Nicolas
_________________________________________________________________
Pendant tout l'été, consultez vos emails Hotmail sur votre mobile !
http://www.messengersurvotremobile.com/?d=hotmail</description>
    <dc:creator>Nicolas Chollet</dc:creator>
    <dc:date>2008-07-29T09:20:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3640">
    <title>Raj Muchhala is out of the office.</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3640</link>
    <description>
I will be out of the office starting  07/24/2008 and will not return until
07/25/2008.

7-24 -&gt; I am OOO due to sick family member.  I will be checking email
sporadically


**************************************************************************************
This e-mail message and all attachments transmitted with it may contain legally privileged and/or confidential information intended solely for the use of the addressee(s). If the reader of this message is not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, forwarding or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and delete this message and all copies and backups thereof.

Thank you.
**************************************************************************************

</description>
    <dc:creator>raj.muchhala&lt; at &gt;assurant.com</dc:creator>
    <dc:date>2008-07-24T14:27:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3639">
    <title>Writing large Strings (&gt; 4000Byte) to Oracle database</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3639</link>
    <description>
How can I write large text strings (larger then 4000Byte) to a
log4net.Appender.AdoNetAppender. 

Up to 4000Byte it works fine with the dbType:String. But how can I write
larger Strings.
(Mostly used for writing stack trace to a database)

Can I do it over a CLOB?


&lt;appender name="AdoNetAppender_BusinessLogic"
type="log4net.Appender.AdoNetAppender"&gt;
  ...
  &lt;connectionType value="CoreLab.Oracle.OracleConnection, CoreLab.Oracle"/&gt;
  ...
  &lt;parameter&gt;&lt;parameterName value="Message"/&gt;&lt;dbType value="String"/&gt;&lt;layout
type="log4net.Layout.PatternLayout"&gt;&lt;conversionPattern
value="%message"/&gt;&lt;/layout&gt;&lt;/parameter&gt;
  ...
&lt;/appender&gt;

</description>
    <dc:creator>BushTacker</dc:creator>
    <dc:date>2008-07-24T12:04:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3638">
    <title>FW: AdoNetAppender: can not read custom properties from LoggingEvent using configuration file</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3638</link>
    <description>I used a extended log using example:      

 

http://svn.apache.org/viewvc/logging/log4net/trunk/extensions/net/1.0/log4ne

t.Ext.EventID/cs/src/EventIDLogImpl.cs?view=co .

 

 

 

 I have properties InstanceId that is setted in extended log:  

 

            LoggingEvent loggingEvent = new

 

                  LoggingEvent(ThisDeclaringType, Logger.Repository,
Logger.Name,

 

                                                             Level.Info,
message, exc);

 

            loggingEvent.Properties["InstanceId"] = logData.DCSInstanceId;

 

            Logger.Log(loggingEvent);

 

 I received error: 

 

      [6108] log4net:ERROR XmlHierarchyConfigurator: Cannot find Property
[conversionPattern] to set object on
[log4net.Appender.AdoNetAppenderParameter] 

 

 

 

 Where it is the problem? Do you can help me? The logs works correctly if
uses other appender: "log4net.Appender.OutputDebugStringAppender"

 

 

 

 

 

I used log4net 1.2.10.0(windows) with following configuration for log4net:

 

 

 

&lt;log4net&gt;

 

    &lt;appender name="AdoNetAppender_SqlServer"

 

type="log4net.Appender.AdoNetAppender"&gt;

 

    &lt;bufferSize value="100"/&gt;

 

    &lt;connectionType value="System.Data.SqlClient.SqlConnection, System.Data,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;

 

    &lt;connectionString value="data source=XXX; initial catalog=XXX;
integrated security=false;persist security info=True;User
ID=XXX;Password=XXX" /&gt; 

 

    &lt;commandText value="[Routine].[usp_InsertLog]" /&gt;

 

    &lt;commandType value="StoredProcedure" /&gt;

 

    &lt;parameter&gt;

 

        &lt;parameterName value="&lt; at &gt;log_date" /&gt;

 

        &lt;dbType value="DateTime" /&gt;

 

        &lt;layout type="log4net.Layout.RawTimeStampLayout" /&gt;

 

    &lt;/parameter&gt;

 

    &lt;parameter&gt;

 

        &lt;parameterName value="&lt; at &gt;message" /&gt;

 

        &lt;dbType value="String" /&gt;

 

        &lt;size value="4000" /&gt;

 

        &lt;layout type="log4net.Layout.PatternLayout"&gt;

 

        &lt;conversionPattern value="%message" /&gt;

 

        &lt;/layout&gt;

 

    &lt;/parameter&gt;

 

    &lt;parameter&gt;

 

          &lt;parameterName value="&lt; at &gt;instance_id" /&gt;

 

          &lt;dbType value="int32" /&gt; 

 

          &lt;layout type="Dcs.Log.ProtocolInfoPatternLayout, Dcs.Log" /&gt;

 

          &lt;layout type="log4net.Layout.PatternLayout"&gt;

 

          &lt;conversionPattern value="%P{InstanceId}" /&gt;

 

    &lt;/parameter&gt;

 

&lt;/appender&gt;

 

 

 

&lt;root&gt;

 

      &lt;level value="DEBUG" /&gt;

 

      &lt;appender-ref ref="DebugView" /&gt;

 

      &lt;appender-ref ref="AdoNetAppender_SqlServer" /&gt; &lt;/root&gt; &lt;/log4net&gt;

 

 

 

Have a nice day

 

Andy

 

</description>
    <dc:creator>Andrei Leca</dc:creator>
    <dc:date>2008-07-23T12:06:04</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3635">
    <title>how to configure a "deny stringmatch filter"</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3635</link>
    <description>the following filter:

&lt;filter type="log4net.Filter.StringMatchFilter"&gt;
    &lt;stringToMatch value="database" /&gt;
&lt;/filter&gt;

Look for the substring 'database' in the message text of the event, in the
case that text is found the filter is ACCEPTED and the message is logged. OK

I want to configure a filter that DENY the substring 'database' (don't log
the message)

how can I configure that?

thanks in advance,
Alexander Wolff
</description>
    <dc:creator>Alexander Wolff</dc:creator>
    <dc:date>2008-07-20T04:55:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3632">
    <title>RollingFileAppender not working</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3632</link>
    <description>Hi All

We have an app that uses log4net 1.2.0.22663. Its deployed on Win2K3 server,
running on IIS 6.0. My log4net config look like,

&lt;log4net debug="false"&gt;
  &lt;appender name="LogFileAppender"
type="log4net.Appender.RollingFileAppender,log4net"&gt;
   &lt;param name="File" value="..\\..\\settings\\logs\\WindowsCWSLog.txt"/&gt;
   &lt;param name="AppendToFile" value="true"/&gt;
   &lt;param name="RollingStyle" value="Size"/&gt;
   &lt;param name="MaxSizeRollBackups" value="20"/&gt;
   &lt;!-- max file size for hte log before it rolls over... 10MB --&gt;
   &lt;param name="MaximumFileSize" value="10000KB"/&gt;
   &lt;param name="StaticLogFileName" value="true"/&gt;
   &lt;layout type="log4net.Layout.PatternLayout"&gt;
    &lt;param name="ConversionPattern" value="%d [%t] %-5p %c [%x] - %m%n"/&gt;
   &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;root&gt;
   &lt;level value="DEBUG"/&gt;
   &lt;appender-ref ref="LogFileAppender"/&gt;
  &lt;/root&gt;
 &lt;/log4net&gt;

As you can see I have set up a size based rolling over. Recently, this seems
to have broken. I turned on internal debugging and got this error,
log4net:ERROR RollingFileAppenderOutput stream for appender named
[LogFileAppender] has been closed.

Rolling over is no longer happening and logging is off until I manually roll
the file over. Also, the count direction (although not set in the config) is
less than 0 as I see the last rolled over file having the highest number.

Any thoughts?

Thanks
Srini
</description>
    <dc:creator>vikram srinivasan</dc:creator>
    <dc:date>2008-07-18T14:18:35</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3629">
    <title>XML configuration, windows service</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3629</link>
    <description>Hi all,
I'm using

[assembly: log4net.Config.XmlConfigurator(ConfigFileExtension = "conflog", Watch = true)]

in AssemblyInfo.cs

Almost everything works fine.
When I started service without config file there is no problem, simply service does not generate log.
Then I add config file into service directory, again everything works fine, it starts logging.
If I change config file then the configuration change and again everything is ok.

But when I delete config file then service still loging, I hoped that it stops logging.

How to do that, I know that it can be done using change config file 
instead of deleting it, but I need some more simple solution, because it 
wil be used by our customers which has no knowledge about editing files. 
I hoped that I will send them config file, which they simply copy into 
app directory, then they send me log file back and then delete config 
file. All without restarting service.

Can you someone help me with that?

A.

</description>
    <dc:creator>Aleš Vojáček</dc:creator>
    <dc:date>2008-07-17T12:11:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3628">
    <title>AdoNetAppender.ActivateOptions not using correct connection string?</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3628</link>
    <description>I am using an adonetappender.  THe appender is defined an a separate
config file, and I use assembly attributes to load it.
In my code, early on, I get the appender and set its connection string.
But when I call ActivateOptions, I get an error - it seems the
appender is trying to use the old, dummy, connection string that I
defined in the config  file.  This is not what it should do.

Any ideas?  Is it not possible to set the connection string at
runtime?  I saw posts explaining how  to to exactly this, and no one
mentioend this issue.

Cheers,
Daniel

</description>
    <dc:creator>Daniel Williams</dc:creator>
    <dc:date>2008-07-10T17:05:24</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3626">
    <title>Must declare a logger in the exe?</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3626</link>
    <description>I have a dll that I recently put log4net logging into.  It  is called
by many different executables.  So I wanted to find out what is the
minimum I must do so that an exe will cause the logging to happen in
the dll.

Add reference to log4net
Add [assembly:log4net.Config.XmlConfigurator(ConfigFile="log4net.config",
Watch=true)] to the exe's assemblyInfo.cs

That should be it, right?  We've referenced the dll, and called
configure using the assembly attribute.

However, this does not cause my dll to log.  I find that only if I
declare a logger in the exe, only then will the logging in my dll
start.
Does this make sense?  Am I missing something?  I would like to know
the very minimum of code changes required to get logging to work.

Cheers,
Daniel

</description>
    <dc:creator>Daniel Williams</dc:creator>
    <dc:date>2008-07-01T23:40:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3623">
    <title>Message encoding</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3623</link>
    <description>
Hi everyone,

I have a remoting appender in place, but it looks like the encoding of the message isn't unicode or at least it doesn't support the equivalent of (char)172 because that special characters gets all weird on the server side. Is there anyway to set which encoding the logger/appender are using, specially in the case of remoting.

Thanks,
Yann 
</description>
    <dc:creator>Yann Luppo</dc:creator>
    <dc:date>2008-06-27T22:49:55</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3622">
    <title>Default PatternLayout date format is not ISO8601</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3622</link>
    <description>I could find no FAQ on this so I am reporting this here.  Everyone repeats that
%date{ISO8601} will produce ISO8601 format for dates.  Beyond that, the documentation says
that the default form of the %date in PatternLayout is ISO8601.

This appears to be wrong based on the statement of the ISO8601 standard at
http://www.w3.org/TR/NOTE-datetime.  

An example should illustrate the difference easily.

Sample output of %date{ISO8601}:

2008-06-27 15:24:27,421

But if the above elements (down to the fractional second) are to be displayed, the ISO8601
standard says it should be (assuming Pacific Time in this sample)

2008-06-27T15:24:27.421-07:00

The ISO8601 correct format is *possible* in log4net, of course, but it is not the default.
I don't know whether this is a bug in log4net or whether the documentation is just out of
date or what.  I will leave that for others to sort out but there is a mismatch between
the documentation and the behavior.

Eric Chamberlain
VentriPoint, Inc. | www.ventripoint.com | Software Engineer 
Helping heart care through innovative diagnostic solutions

</description>
    <dc:creator>Eric Chamberlain</dc:creator>
    <dc:date>2008-06-27T22:33:41</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.log.log4net.user/3621">
    <title>Parsing a log generated by a RollingFileAppender with LINQ to XML</title>
    <link>http://comments.gmane.org/gmane.comp.log.log4net.user/3621</link>
    <description>Hello, 

This post is not directly related to log4net. However, I have a parsing
issue with one of the generated log file.

I'm currently trying to parse (with LINQ to XML) a log file generated by a
RollingFileAppender.
It has the format as shown at the end of this post (XML fragment, undeclared
namespace).

I tried to load it using the XElement.Load() method. However, it throws an
exception telling me that the "log4j" namespace is undeclared.

Has anyone already tried to load such a file using linq?

Thanks for any feedback!
José

 

&lt;log4j:event logger="InternalLog" timestamp="1214275497000" level="DEBUG"
thread="943180"&gt;&lt;log4j:message&gt;completed registering new logger for category
AFCLOGGING&lt;/log4j:message&gt;&lt;log4j:properties&gt;&lt;log4j:data name="application"
value="WindowsCE" /&gt;&lt;log4j:data name="log4net:UserName" value="NOT
AVAILABLE" /&gt;&lt;log4j:data name="log4jmachinename" value="WindowsCE"
/&gt;&lt;log4j:data name="log4net:Identity" value="NOT AVAILABLE" /&gt;&lt;log4j:data
name="log4net:HostName" value="WindowsCE" /&gt;&lt;log4j:data name="log4japp"
value="DBUtilities.SQL.UnitTestsCE.exe"
/&gt;&lt;/log4j:properties&gt;&lt;log4j:locationInfo class="AFCLogging.Logging"
method="Logging" file="Logging.cs" line="82" /&gt;&lt;/log4j:event&gt;

&lt;log4j:event logger="InternalLog" timestamp="1214275498000" level="DEBUG"
thread="943180"&gt;&lt;log4j:message&gt;completed registering new logger for category
InternalLog&lt;/log4j:message&gt;&lt;log4j:properties&gt;&lt;log4j:data name="application"
value="WindowsCE" /&gt;&lt;log4j:data name="log4net:UserName" value="NOT
AVAILABLE" /&gt;&lt;log4j:data name="log4jmachinename" value="WindowsCE"
/&gt;&lt;log4j:data name="log4net:Identity" value="NOT AVAILABLE" /&gt;&lt;log4j:data
name="log4net:HostName" value="WindowsCE" /&gt;&lt;log4j:data name="log4japp"
value="DBUtilities.SQL.UnitTestsCE.exe"
/&gt;&lt;/log4j:properties&gt;&lt;log4j:locationInfo class="AFCLogging.Logging"
method="Logging" file="Logging.cs" line="82" /&gt;&lt;/log4j:event&gt;
.....

 

 

</description>
    <dc:creator>José (bluemail</dc:creator>
    <dc:date>2008-06-27T22:03:10</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>
