<?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://permalink.gmane.org/gmane.comp.log.log4net.user">
    <title>gmane.comp.log.log4net.user</title>
    <link>http://permalink.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://permalink.gmane.org/gmane.comp.log.log4net.user/3877"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3876"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3875"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3874"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3873"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3872"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3871"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3870"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3869"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3868"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3867"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3866"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3865"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3864"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3863"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3862"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3861"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3860"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3859"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.log.log4net.user/3858"/>
      </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://permalink.gmane.org/gmane.comp.log.log4net.user/3877">
    <title>Re: error XmlConfigurator: Failed to parse config file.</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3877</link>
    <description>
It seems that using the XmlConfigurator attribute in assemblyinfo works with
default .config files but the fluent XmlConfigurator does not. Consequently,
using the fluent configuration with non-default config files works as long
as I have the path correct. Seems strange to me. 

One question, does XmlConfigurator have to be called in every project that
will use logging? I created a wrapper aroung log4net and would like to just
call XmlConfigurator within the wrapper class only but that doesn't seem to
work for me. It won't log unless I have XmlConfigurator called in every
project using log4net. Any help would be appreciated. Seems configuring
log4net is not as easy as the few tutorials online seem to claim. 



Freddy Gómez wrote:

</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-12-04T00:35:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3876">
    <title>Re: error XmlConfigurator: Failed to parse config file.</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3876</link>
    <description>If you add to the config file the section:
 &lt;appSettings&gt;    &lt;add key="log4net.Internal.Quiet" value="false" /&gt;
  &lt;/appSettings&gt;

you will get in the output window of Visual Studio debug information from
log4net.

On Wed, Dec 3, 2008 at 2:12 PM, suedeuno &lt;suedeuno&lt; at &gt;yahoo.com&gt; wrote:

</description>
    <dc:creator>Freddy Gómez</dc:creator>
    <dc:date>2008-12-03T21:15:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3875">
    <title>error XmlConfigurator: Failed to parse config file.</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3875</link>
    <description>
I'm getting this error when running a unit test. It does complete the logging
in spite of this error. I need to resolve this so that the automated build
process does not fail. Any ideas?:

log4net : error XmlConfigurator: Failed to parse config file. Is the
&lt;configSections&gt; specified as: &lt;section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821" /&gt;


app.config:
    &lt;configSections&gt;
        &lt;section name="log4net"
type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" /&gt;
    &lt;/configSections&gt;

In code:
            log4net.Config.XmlConfigurator.Configure();
            log =
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
            log.Error("message);
</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-12-03T18:42:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3874">
    <title>logging into different logfiles depending on parameter</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3874</link>
    <description>Hello,
I'm trying to log in separate logfiles, depending on a parameter in my
application. Until now I'm unable to.
I have read about filters and what I tried is :

in my app :

log4net.GlobalContext.Properties["myparam"] = "xyz";

log.Info("message 1");

log4net.GlobalContext.Properties["myparam"] = "abc";

log.Info("message 2");


I'd like to have the 2 messages in different files. The filter I used is  :
      &lt;filter type="log4net.Filter.PropertyFilter"&gt;
      &lt;acceptOnMatch value="true" /&gt;
      &lt;key value="myparam" /&gt;
               &lt;stringToMatch value="xyz" /&gt;
      &lt;/filter&gt;
      &lt;filter type="log4net.Filter.LevelRangeFilter"&gt;
        &lt;levelMin value="ALL" /&gt;
        &lt;levelMax value="FATAL" /&gt;
      &lt;/filter&gt;
      &lt;filter type="log4net.Filter.DenyAllFilter" /&gt;



The result is that all messages are logged in all logfiles.
How should/can I solve this ?

Thanks,
Edwin


</description>
    <dc:creator>Edwin</dc:creator>
    <dc:date>2008-12-02T14:14:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3873">
    <title>Re: Best Way to Set Up Massive Number of Loggers</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3873</link>
    <description>This is the only way I know how to do this in log4net. We do this to 
handle remote logging from embedded controllers. We use .NET remoting 
appenders in this case, so we get the HostName property of each remote 
host logging to the sink. But if you're local you could do the same 
thing with a string filter or other property filter. This gives you 
individual layout control over each appender, and hence each log source.

If only log4net would add in a layout-ref tag so we wouldn't have to 
repeat ourselves 75 times...


&lt;log4net&gt;
&lt;appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender"&gt;
&lt;layout type="log4net.Layout.PatternLayout"&gt;
&lt;param name="ConversionPattern" value="%property{log4net:HostName} 
%d{MM/dd/yyyy HH:mm:ss.fff} [%p] %c{1}: %m%n" /&gt;
&lt;/layout&gt;
&lt;/appender&gt;

&lt;appender name="Comp1" type="log4net.Appender.RollingFileAppender"&gt;
&lt;file value="Comp1/Comp1.log" /&gt;
&lt;staticLogFileName value="true" /&gt;
&lt;filter type="log4net.Filter.PropertyFilter"&gt;
&lt;Key value="log4net:HostName" /&gt;
&lt;StringToMatc</description>
    <dc:creator>Loren Keagle</dc:creator>
    <dc:date>2008-12-02T07:19:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3872">
    <title>Re: Best Way to Set Up Massive Number of Loggers</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3872</link>
    <description>Hi Walden-

I like the grep idea. The motivation for the multiple log files is twofold.
First, they get really big really quickly. I realize I can roll them on
size, but it's nice to have a daily log file. Second, we have some utilities
that can take a log file and replay previous transactions (we are logging a
lot of data in custom formats). These are still programmer tools (and QA).

-Eric


On Mon, Dec 1, 2008 at 7:39 PM, Walden H. Leverich
&lt;WaldenL&lt; at &gt;techsoftinc.com&gt;wrote:

</description>
    <dc:creator>Eric Marthinsen</dc:creator>
    <dc:date>2008-12-02T00:48:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3871">
    <title>RE: Best Way to Set Up Massive Number of Loggers</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3871</link>
    <description>Since you're asking for thoughts... bad idea. To me log4net is plumbing,
that is it's programmer based stuff. Sounds to me like you're attempting
to use it to satisfy a user requirement. I think you'd be better off
adding the logging as part of the business processing. Now, having said
that, there are still times when it's nice to know which trading partner
you're dealing with on a log message. In that case I'd push the partner
id into the NDC at the start of the process, and pop it at the end. That
way you'll have it in the log (if you format it correctly). You'll have
a single log file, but you can always fgrep it. We do something similar
with several levels of NDC and can quickly come up with a issue-specific
logfile using grep.

 

-Walden

 

</description>
    <dc:creator>Walden H. Leverich</dc:creator>
    <dc:date>2008-12-02T00:39:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3870">
    <title>Best Way to Set Up Massive Number of Loggers</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3870</link>
    <description>Hello-

I'm working on an app that coordinates data transfers among multiple trading
partners. I want to create a log file for each trading partner. I had a few
ideas of how to do this, but am not sure which would be considered the
optimal way. The expected number of trading partners is likely to be around
100, but could be higher. Here are my thoughts:

1. Add a bunch of named loggers to my log4net.config file
2. Do programmatic configuration of the loggers on application start
3. Write my own appender that is based on the RollingFileAppender

Do any of these scream out as being a good or bad solution? Is there a
better approach that I might be missing? Thanks in advance.

Regards,
Eric
</description>
    <dc:creator>Eric Marthinsen</dc:creator>
    <dc:date>2008-12-02T00:31:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3869">
    <title>Re: Logging issue, Repository count is 1</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3869</link>
    <description>
I had to call XmlConfigurator.Configure(); within the global.asax file for it
to work due to StructureMap. Didn't have the problem with Unity. 

</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-12-01T22:55:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3868">
    <title>RE: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3868</link>
    <description>
Actually that section is present in the web.config. Strangely if I remove the
attribute from assembly.info no logging occurs, but if I replace the
attribute back to the assembly.info then logging works. Is there an issue
with log4net and .Net 3.5 framework?




Radovan Raszka wrote:

</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-12-01T17:05:22</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3867">
    <title>Logging issue, Repository count is 1</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3867</link>
    <description>
I have two projects setup, one uses Unity depencency injection and the other
uses StructureMap. The project using Unity will log both from unit tests and
from the web. The StructureMap project will only log from the unit test. 

As a note, when I call 'log =
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);'
from the Unity project the LogManager Repository count is 0. 

When I call the same line from the StructureMap project unit test the
repository count is also 0, but from the Structure Map web the repository
count is 1 with 59 values. I'm assuming this is a key to why it's not
working within the web of the structure map project. Can anyone provide any
help in debugging/fixing this issue?
</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-12-01T16:32:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3866">
    <title>Re: Strong Name Key</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3866</link>
    <description>correction - (1.2.10.0 signed by the log4net key)

On Mon, Dec 1, 2008 at 8:16 AM, Scott Alexander &lt;sjalex&lt; at &gt;gmail.com&gt; wrote:

</description>
    <dc:creator>Scott Alexander</dc:creator>
    <dc:date>2008-12-01T16:16:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3865">
    <title>Re: Strong Name Key</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3865</link>
    <description>NHibernate is compiled against the strong named version of log4net so
yes, it requires a specific version (1.2.10.9 signed by the log4net
key) of log4net.

Scott

On Mon, Dec 1, 2008 at 8:11 AM, Walden H. Leverich
&lt;WaldenL&lt; at &gt;techsoftinc.com&gt; wrote:

</description>
    <dc:creator>Scott Alexander</dc:creator>
    <dc:date>2008-12-01T16:16:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3864">
    <title>RE: Strong Name Key</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3864</link>
    <description>Does NHibernate require a signed version of the assembly? Why not just
drop you modified version, unsigned, into the bin directory and let
NHibernate use it. 

-Walden

</description>
    <dc:creator>Walden H. Leverich</dc:creator>
    <dc:date>2008-12-01T16:11:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3863">
    <title>Strong Name Key</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3863</link>
    <description>Just curious if there is any new information regarding the
availability of = the log4net private key.

I have a project that uses log4net but requires a minor modification
to the=  code (RollingFileAppender RollFile method marked as virtual).
 This is a p= roblem b/c I also use some other assemblies (i.e.
NHibernate) that use log4= net. Now I have two log4net assemblies
signed w/ different keys...

In order to get this to almost work (without using the GAC) I have to
copy = both assemblies to my bin directory (bin/log4net.dll and
bin/log4net/log4ne= t.dll), then use a &lt;codebase&gt; element in the
application config file to ove= rride the assembly binding. This
almost works, w/ the exception of the majo= r problem that I now have
two log4net assemblies instantiated and cannot re= ceive log messages
from both using a single appender.

This would be a trivial problem if I had access to the private key...
any a= dvice?

Thanks
Scott Alexander

P.S. love the project!

</description>
    <dc:creator>Scott Alexander</dc:creator>
    <dc:date>2008-12-01T15:43:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3862">
    <title>Re: Log4net.dll reference copy-local=true not behaving as expected</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3862</link>
    <description>The thing is MyLogWrapper is built as a release library as it is used
throughout all my different projects and therefore I do not want to have a
project reference.
I tried removing log4net.dll from the GAC and now it seems to get copied
locally as expected. Maybe someone could clarify on why this is the case?

BB

2008/11/26 Radovan Raszka &lt;raszka&lt; at &gt;hasam.cz&gt;

</description>
    <dc:creator>boombox boy</dc:creator>
    <dc:date>2008-11-27T09:44:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3861">
    <title>RE: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3861</link>
    <description>You probably missing these lines in your web.config / app.config
&lt;configSections&gt;
  &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
&lt;/configSections&gt;

See http://logging.apache.org/log4net/release/manual/configuration.html, .config Files paragraph

Radovan

-----Původní zpráva-----
Od: suedeuno [mailto:suedeuno&lt; at &gt;yahoo.com] 
Odesláno: 26. listopadu 2008 18:45
Komu: log4net-user&lt; at &gt;logging.apache.org
Předmět: Re: configuration problems, not logging


I created a unit test and got some debug info back finally but I'm unclear
why it's happening. I'm calling Configure in my utility class -&gt;        
public LogUtility()
        {
            log4net.Config.XmlConfigurator.Configure();
            log =
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        }



LogUtilityTests.LoggerIsSuccessful : Passedlog4net: log4net assembly [log4net, Version=1.2.10.0, Culture=neutral, 

PublicKeyToken=1b44e1d426115821]. Loaded from [Global Ass</description>
    <dc:creator>Radovan Raszka</dc:creator>
    <dc:date>2008-11-27T09:17:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3860">
    <title>Re: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3860</link>
    <description>
I got it to work. I removed a named logger in the config file and that seemed
to make it work. Still not sure why I had to use attributes in the
assemblyinfo files though, I was calling
log4net.Config.XmlConfigurator.Configure(); in my logger class.



Ron Grabowski wrote:

</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-11-26T22:50:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3859">
    <title>Re: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3859</link>
    <description>What happens when you make the buffer size 1?



----- Original Message ----
From: suedeuno &lt;suedeuno&lt; at &gt;yahoo.com&gt;
To: log4net-user&lt; at &gt;logging.apache.org
Sent: Tuesday, November 25, 2008 3:05:29 PM
Subject: configuration problems, not logging


What's missing here? Using profiler, the database never receives the call.

web.config:
    &lt;log4net&gt;
        &lt;appender name="ADONetAppender"
type="log4net.Appender.ADONetAppender"&gt;
            &lt;bufferSize value="100" /&gt;

[snip]


</description>
    <dc:creator>Ron Grabowski</dc:creator>
    <dc:date>2008-11-26T22:45:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3858">
    <title>Re: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3858</link>
    <description>
Ok, I added [assembly: XmlConfigurator()] to the AssemblyInfo files and the
unit tests log the messages successfully however I still am unable to log
from the web project. Ideas anyone?

</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-11-26T21:54:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.log.log4net.user/3857">
    <title>Re: configuration problems, not logging</title>
    <link>http://permalink.gmane.org/gmane.comp.log.log4net.user/3857</link>
    <description>
I created a unit test and got some debug info back finally but I'm unclear
why it's happening. I'm calling Configure in my utility class -&gt;        
public LogUtility()
        {
            log4net.Config.XmlConfigurator.Configure();
            log =
LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        }



LogUtilityTests.LoggerIsSuccessful : Passedlog4net: log4net assembly
[log4net, Version=1.2.10.0, Culture=neutral, 

PublicKeyToken=1b44e1d426115821]. Loaded from [Global Assembly Cache]. (.NET
Runtime [2.0.50727.3053] on Microsoft Windows NT 5.1.2600 Service 

Pack 2)
log4net: log4net assembly [log4net, Version=1.2.10.0, Culture=neutral,
PublicKeyToken=1b44e1d426115821]. Loaded from [Global Assembly Cache]. 

(.NET Runtime [2.0.50727.3053] on Microsoft Windows NT 5.1.2600 Service Pack
2)
log4net: DefaultRepositorySelector: defaultRepositoryType
[log4net.Repository.Hierarchy.Hierarchy]
log4net: DefaultRepositorySelector: defaultRepositoryType
[log4net.Repository.Hi</description>
    <dc:creator>suedeuno</dc:creator>
    <dc:date>2008-11-26T17:44:48</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>
