<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>log4net-user@logging.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/logging-log4net-user/</id>
<updated>2009-12-10T10:28:41Z</updated>
<entry>
<title>Re: Customized mail subject fo SmtpAppender</title>
<author><name>Petite Escalope &lt;miniscalope@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c6af26d830912090216y64c06c79r72dc74e7861a2431@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6af26d830912090216y64c06c79r72dc74e7861a2431@mail-gmail-com%3e</id>
<updated>2009-12-09T10:16:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thank you :)

2009/12/8 Pascal ROZE &lt;pascal.roze@gmail.com&gt;

&gt; Hi
&gt;
&gt; Look at this: http://www.codeproject.com/KB/cs/log4net_SmtpAppender.aspx
&gt;
&gt; Cheers
&gt;
&gt; 2009/12/7 Petite Escalope &lt;miniscalope@gmail.com&gt;
&gt;
&gt; Hello,
&gt;&gt; I am using log4net for a web project and would like to make customized
&gt;&gt; mail subjects my email appender. I already tried something like :
&gt;&gt;
&gt;&gt; *          &lt;subject type="log4net.Util.PatternString" value="CovCake LOG
&gt;&gt; INFO : %property{mailsubject}" /&gt;*
&gt;&gt;
&gt;&gt; * public static void MailInfo(string msg, string subjectDetails)*
&gt;&gt;
&gt;&gt; *            {*
&gt;&gt; *                log4net.ThreadContext.Properties["mailsubject"] =
&gt;&gt; subjectDetails;*
&gt;&gt; *                Log.Mail.Info(msg);*
&gt;&gt; *                log4net.ThreadContext.Properties.Clear();*
&gt;&gt; *            }*
&gt;&gt; *
&gt;&gt; *
&gt;&gt; But it renders CovCake LOG INFO : (null).
&gt;&gt; *
&gt;&gt; *
&gt;&gt; Is there a way to customize mail subject natively (i mean without
&gt;&gt; overriding existing classes or extending the SmtpAppender)?
&gt;&gt; *
&gt;&gt; *
&gt;&gt; *T*hank you very much. Sorry for my english.
&gt;&gt;
&gt;&gt; Best *regards*
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;


-- 
Cordialement

Alexandre Codjovi
06 59 08 39 82
alexandre@codjovi.fr


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Partial logging with windows service</title>
<author><name>jclegall &lt;jclegall@cpaglobal.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c26704816.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26704816-post@talk-nabble-com%3e</id>
<updated>2009-12-09T03:54:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Awesome. Resolved!
Thanks!


Alexander-106 wrote:
&gt; 
&gt; Try this;
&gt; 
&gt;         private void GetLogger()
&gt;         {
&gt;             if (_log != null) return;
&gt;             log4net.Config.XmlConfigurator.Configure();
&gt;             _log = LogManager.GetLogger("MyWindowsServices");
&gt;         }
&gt; 
&gt; 
&gt; 2009/12/8 jclegall &lt;jclegall@cpaglobal.com&gt;:
&gt;&gt;
&gt;&gt; I have implemented log4net for a windows service, but I get a partial
&gt;&gt; logging.
&gt;&gt;
&gt;&gt; Here is the code for my windows service:
&gt;&gt;
&gt;&gt; private ILog _log;
&gt;&gt;
&gt;&gt; protected override void OnStart(string[] args)
&gt;&gt; {
&gt;&gt; Â GetLogger();
&gt;&gt; Â _log.Info("Starting Services");
&gt;&gt; Â _log.Info("Loading configuration file");
&gt;&gt; Â //Additional code here...
&gt;&gt; Â _log.Info("Service is running...");
&gt;&gt; }
&gt;&gt;
&gt;&gt; protected override void OnStop()
&gt;&gt; {
&gt;&gt; Â GetLogger();
&gt;&gt; Â _log.Info("Stopping Services");
&gt;&gt; Â //Additional code here
&gt;&gt; Â _log.Info("Services Stopped");
&gt;&gt; }
&gt;&gt;
&gt;&gt; Â private void GetLogger()
&gt;&gt; Â {
&gt;&gt; Â  if (_log == null)
&gt;&gt; Â  {
&gt;&gt; Â  Â  _log = LogManager.GetLogger("MyWindowsServices");
&gt;&gt; Â  }
&gt;&gt; Â }
&gt;&gt;
&gt;&gt; My adapter is:
&gt;&gt; Â &lt;log4net&gt;
&gt;&gt; Â  Â &lt;!-- Levels Â (from lowest to highest): Â ALL | DEBUG | INFO | WARN |
&gt;&gt; ERROR | FATAL | OFF | --&gt;
&gt;&gt; Â  Â &lt;root&gt;
&gt;&gt; Â  Â  Â &lt;level value="ALL" /&gt;
&gt;&gt; Â  Â  Â &lt;appender-ref ref="RollingFileAppender" /&gt;
&gt;&gt; Â  Â &lt;/root&gt;
&gt;&gt;
&gt;&gt; Â  Â &lt;logger name="MyWindowsServices"&gt;
&gt;&gt; Â  Â  Â &lt;level value="ALL"/&gt;
&gt;&gt; Â  Â &lt;/logger&gt;
&gt;&gt;
&gt;&gt; Â  Â &lt;appender name="RollingFileAppender"
&gt;&gt; type="log4net.Appender.RollingFileAppender"&gt;
&gt;&gt; Â  Â  Â &lt;file value="My.Windows.Services.log" /&gt;
&gt;&gt; Â  Â  Â &lt;appendToFile value="true" /&gt;
&gt;&gt; Â  Â  Â &lt;rollingStyle value="Composite" /&gt;
&gt;&gt; Â  Â  Â &lt;datePattern value="yyyyMMdd" /&gt;
&gt;&gt; Â  Â  Â &lt;maxSizeRollBackups value="10" /&gt;
&gt;&gt; Â  Â  Â &lt;maximumFileSize value="3MB" /&gt;
&gt;&gt; Â  Â  Â &lt;staticLogFileName value="true" /&gt;
&gt;&gt; Â  Â  Â &lt;immediateFlush value="true" /&gt;
&gt;&gt; Â  Â  Â &lt;layout type="log4net.Layout.PatternLayout"&gt;
&gt;&gt; Â  Â  Â  Â &lt;header value="[Session Start]&amp;#13;&amp;#10;"/&gt;
&gt;&gt; Â  Â  Â  Â &lt;footer value="[Session End]&amp;#13;&amp;#10;"/&gt;
&gt;&gt; Â  Â  Â  Â &lt;conversionPattern value="%date [%thread] %-5level %logger
&gt;&gt; [%property{NDC}] - %message%newline" /&gt;
&gt;&gt; Â  Â  Â &lt;/layout&gt;
&gt;&gt; Â  Â &lt;/appender&gt;
&gt;&gt; Â &lt;/log4net&gt;
&gt;&gt;
&gt;&gt; The result of my log file contains only the log information from the
&gt;&gt; Start
&gt;&gt; method of the windows service, but nothing for the stop:
&gt;&gt; [Session Start]
&gt;&gt; 2009-12-09 10:39:13,986 [4] INFO Â MyWindowsServices [(null)] - Starting
&gt;&gt; Services
&gt;&gt; 2009-12-09 10:39:14,018 [4] INFO Â MyWindowsServices [(null)] - Loading
&gt;&gt; configuration file
&gt;&gt; 2009-12-09 10:39:14,033 [4] INFO Â MyWindowsServices [(null)] - Service is
&gt;&gt; running...
&gt;&gt; [Session End]
&gt;&gt;
&gt;&gt; What's wrong?
&gt;&gt;
&gt;&gt; Thanks for your help!
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Partial-logging-with-windows-service-tp26703955p26703955.html
&gt;&gt; Sent from the Log4net - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 
&gt; 
&gt; -- 
&gt; Sincerely,
&gt; Alexander N.
&gt; Ogden Nash  - "The trouble with a kitten is that when it grows up,
&gt; it's always a cat." -
&gt; http://www.brainyquote.com/quotes/authors/o/ogden_nash.html
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Partial-logging-with-windows-service-tp26703955p26704816.html
Sent from the Log4net - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Partial logging with windows service</title>
<author><name>Alexander &lt;normalex@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3ce788514b0912081857l3563551dm83cb2310f03b6ff2@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce788514b0912081857l3563551dm83cb2310f03b6ff2@mail-gmail-com%3e</id>
<updated>2009-12-09T02:57:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Try this;

        private void GetLogger()
        {
            if (_log != null) return;
            log4net.Config.XmlConfigurator.Configure();
            _log = LogManager.GetLogger("MyWindowsServices");
        }


2009/12/8 jclegall &lt;jclegall@cpaglobal.com&gt;:
&gt;
&gt; I have implemented log4net for a windows service, but I get a partial
&gt; logging.
&gt;
&gt; Here is the code for my windows service:
&gt;
&gt; private ILog _log;
&gt;
&gt; protected override void OnStart(string[] args)
&gt; {
&gt; Â GetLogger();
&gt; Â _log.Info("Starting Services");
&gt; Â _log.Info("Loading configuration file");
&gt; Â //Additional code here...
&gt; Â _log.Info("Service is running...");
&gt; }
&gt;
&gt; protected override void OnStop()
&gt; {
&gt; Â GetLogger();
&gt; Â _log.Info("Stopping Services");
&gt; Â //Additional code here
&gt; Â _log.Info("Services Stopped");
&gt; }
&gt;
&gt; Â private void GetLogger()
&gt; Â {
&gt; Â  if (_log == null)
&gt; Â  {
&gt; Â  Â  _log = LogManager.GetLogger("MyWindowsServices");
&gt; Â  }
&gt; Â }
&gt;
&gt; My adapter is:
&gt; Â &lt;log4net&gt;
&gt; Â  Â &lt;!-- Levels Â (from lowest to highest): Â ALL | DEBUG | INFO | WARN |
&gt; ERROR | FATAL | OFF | --&gt;
&gt; Â  Â &lt;root&gt;
&gt; Â  Â  Â &lt;level value="ALL" /&gt;
&gt; Â  Â  Â &lt;appender-ref ref="RollingFileAppender" /&gt;
&gt; Â  Â &lt;/root&gt;
&gt;
&gt; Â  Â &lt;logger name="MyWindowsServices"&gt;
&gt; Â  Â  Â &lt;level value="ALL"/&gt;
&gt; Â  Â &lt;/logger&gt;
&gt;
&gt; Â  Â &lt;appender name="RollingFileAppender"
&gt; type="log4net.Appender.RollingFileAppender"&gt;
&gt; Â  Â  Â &lt;file value="My.Windows.Services.log" /&gt;
&gt; Â  Â  Â &lt;appendToFile value="true" /&gt;
&gt; Â  Â  Â &lt;rollingStyle value="Composite" /&gt;
&gt; Â  Â  Â &lt;datePattern value="yyyyMMdd" /&gt;
&gt; Â  Â  Â &lt;maxSizeRollBackups value="10" /&gt;
&gt; Â  Â  Â &lt;maximumFileSize value="3MB" /&gt;
&gt; Â  Â  Â &lt;staticLogFileName value="true" /&gt;
&gt; Â  Â  Â &lt;immediateFlush value="true" /&gt;
&gt; Â  Â  Â &lt;layout type="log4net.Layout.PatternLayout"&gt;
&gt; Â  Â  Â  Â &lt;header value="[Session Start]&amp;#13;&amp;#10;"/&gt;
&gt; Â  Â  Â  Â &lt;footer value="[Session End]&amp;#13;&amp;#10;"/&gt;
&gt; Â  Â  Â  Â &lt;conversionPattern value="%date [%thread] %-5level %logger
&gt; [%property{NDC}] - %message%newline" /&gt;
&gt; Â  Â  Â &lt;/layout&gt;
&gt; Â  Â &lt;/appender&gt;
&gt; Â &lt;/log4net&gt;
&gt;
&gt; The result of my log file contains only the log information from the Start
&gt; method of the windows service, but nothing for the stop:
&gt; [Session Start]
&gt; 2009-12-09 10:39:13,986 [4] INFO Â MyWindowsServices [(null)] - Starting
&gt; Services
&gt; 2009-12-09 10:39:14,018 [4] INFO Â MyWindowsServices [(null)] - Loading
&gt; configuration file
&gt; 2009-12-09 10:39:14,033 [4] INFO Â MyWindowsServices [(null)] - Service is
&gt; running...
&gt; [Session End]
&gt;
&gt; What's wrong?
&gt;
&gt; Thanks for your help!
&gt;
&gt; --
&gt; View this message in context: http://old.nabble.com/Partial-logging-with-windows-service-tp26703955p26703955.html
&gt; Sent from the Log4net - Users mailing list archive at Nabble.com.
&gt;
&gt;



-- 
Sincerely,
Alexander N.
Ogden Nash  - "The trouble with a kitten is that when it grows up,
it's always a cat." -
http://www.brainyquote.com/quotes/authors/o/ogden_nash.html


</pre>
</div>
</content>
</entry>
<entry>
<title>Partial logging with windows service</title>
<author><name>jclegall &lt;jclegall@cpaglobal.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c26703955.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26703955-post@talk-nabble-com%3e</id>
<updated>2009-12-09T01:53:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I have implemented log4net for a windows service, but I get a partial
logging.

Here is the code for my windows service:

private ILog _log;

protected override void OnStart(string[] args)
{
  GetLogger();
  _log.Info("Starting Services");
  _log.Info("Loading configuration file");
  //Additional code here...
  _log.Info("Service is running...");
}

protected override void OnStop()
{
  GetLogger();
  _log.Info("Stopping Services");
  //Additional code here
  _log.Info("Services Stopped");
}

 private void GetLogger()
 {
   if (_log == null)
   {
     _log = LogManager.GetLogger("MyWindowsServices");
   }
 }

My adapter is:
  &lt;log4net&gt;
    &lt;!-- Levels  (from lowest to highest):  ALL | DEBUG | INFO | WARN |
ERROR | FATAL | OFF | --&gt;
    &lt;root&gt;
      &lt;level value="ALL" /&gt;
      &lt;appender-ref ref="RollingFileAppender" /&gt;
    &lt;/root&gt;

    &lt;logger name="MyWindowsServices"&gt;
      &lt;level value="ALL"/&gt;
    &lt;/logger&gt;

    &lt;appender name="RollingFileAppender"
type="log4net.Appender.RollingFileAppender"&gt;
      &lt;file value="My.Windows.Services.log" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;rollingStyle value="Composite" /&gt;
      &lt;datePattern value="yyyyMMdd" /&gt;
      &lt;maxSizeRollBackups value="10" /&gt;
      &lt;maximumFileSize value="3MB" /&gt;
      &lt;staticLogFileName value="true" /&gt;
      &lt;immediateFlush value="true" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;header value="[Session Start]&amp;#13;&amp;#10;"/&gt;
        &lt;footer value="[Session End]&amp;#13;&amp;#10;"/&gt;
        &lt;conversionPattern value="%date [%thread] %-5level %logger
[%property{NDC}] - %message%newline" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
  &lt;/log4net&gt;

The result of my log file contains only the log information from the Start
method of the windows service, but nothing for the stop:
[Session Start]
2009-12-09 10:39:13,986 [4] INFO  MyWindowsServices [(null)] - Starting
Services
2009-12-09 10:39:14,018 [4] INFO  MyWindowsServices [(null)] - Loading
configuration file
2009-12-09 10:39:14,033 [4] INFO  MyWindowsServices [(null)] - Service is
running...
[Session End]

What's wrong?

Thanks for your help!

-- 
View this message in context: http://old.nabble.com/Partial-logging-with-windows-service-tp26703955p26703955.html
Sent from the Log4net - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Customized mail subject fo SmtpAppender</title>
<author><name>Pascal ROZE &lt;pascal.roze@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3cb0336c5b0912080042m46492d63o3e6c888b8892aa2e@mail.gmail.com%3e"/>
<id>urn:uuid:%3cb0336c5b0912080042m46492d63o3e6c888b8892aa2e@mail-gmail-com%3e</id>
<updated>2009-12-08T08:42:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi

Look at this: http://www.codeproject.com/KB/cs/log4net_SmtpAppender.aspx

Cheers

2009/12/7 Petite Escalope &lt;miniscalope@gmail.com&gt;

&gt; Hello,
&gt; I am using log4net for a web project and would like to make customized mail
&gt; subjects my email appender. I already tried something like :
&gt;
&gt; *          &lt;subject type="log4net.Util.PatternString" value="CovCake LOG
&gt; INFO : %property{mailsubject}" /&gt;*
&gt;
&gt; * public static void MailInfo(string msg, string subjectDetails)*
&gt;
&gt; *            {*
&gt; *                log4net.ThreadContext.Properties["mailsubject"] =
&gt; subjectDetails;*
&gt; *                Log.Mail.Info(msg);*
&gt; *                log4net.ThreadContext.Properties.Clear();*
&gt; *            }*
&gt; *
&gt; *
&gt; But it renders CovCake LOG INFO : (null).
&gt; *
&gt; *
&gt; Is there a way to customize mail subject natively (i mean without
&gt; overriding existing classes or extending the SmtpAppender)?
&gt; *
&gt; *
&gt; *T*hank you very much. Sorry for my english.
&gt;
&gt; Best *regards*
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Customized mail subject fo SmtpAppender</title>
<author><name>Petite Escalope &lt;miniscalope@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c6af26d830912071112r736306a4w81d871920c4ad8fc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6af26d830912071112r736306a4w81d871920c4ad8fc@mail-gmail-com%3e</id>
<updated>2009-12-07T19:12:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,
I am using log4net for a web project and would like to make customized mail
subjects my email appender. I already tried something like :

*          &lt;subject type="log4net.Util.PatternString" value="CovCake LOG
INFO : %property{mailsubject}" /&gt;*

* public static void MailInfo(string msg, string subjectDetails)*

*            {*
*                log4net.ThreadContext.Properties["mailsubject"] =
subjectDetails;*
*                Log.Mail.Info(msg);*
*                log4net.ThreadContext.Properties.Clear();*
*            }*
*
*
But it renders CovCake LOG INFO : (null).
*
*
Is there a way to customize mail subject natively (i mean without overriding
existing classes or extending the SmtpAppender)?
*
*
*T*hank you very much. Sorry for my english.

Best *regards*


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Using RollingFileAppender with style=Date.</title>
<author><name>Petr Felzmann &lt;petr.felzmann@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c697b9ad0912071012n55c5afc7qe80fcd1062fd3c44@mail.gmail.com%3e"/>
<id>urn:uuid:%3c697b9ad0912071012n55c5afc7qe80fcd1062fd3c44@mail-gmail-com%3e</id>
<updated>2009-12-07T18:12:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Look at this
https://issues.apache.org/jira/browse/LOG4NET-27


Petr


2009/12/1 David Gerler &lt;dgerler@gmail.com&gt;

&gt;   How do I make it only keep a certain number of files when using the
&gt; rollingstyle = date? I’ve looked on the website and have not been able to
&gt; find an example of anything talking about it. This is what I have now:
&gt;
&gt;
&gt;
&gt;     &lt;appender name="Communications"
&gt; type="log4net.Appender.RollingFileAppender"&gt;
&gt;
&gt;                 &lt;file value="c:/log/register/gis/communications.txt" /&gt;
&gt;
&gt;                 &lt;appendToFile value="true" /&gt;
&gt;
&gt;                  &lt;maxSizeRollBackups value="10" /&gt;
&gt;
&gt; &lt;rollingStyle value="Date" /&gt;
&gt;
&gt;                  &lt;datePattern value="yyyyMMdd-HHmm" /&gt;
&gt;
&gt;                 &lt;layout type="log4net.Layout.PatternLayout"&gt;
&gt;
&gt;                                 &lt;header value="[Header]&amp;#xD;&amp;#xA;" /&gt;
&gt;
&gt;                                 &lt;footer value="[Footer]&amp;#xD;&amp;#xA;" /&gt;
&gt;
&gt;                                 &lt;conversionPattern value="%date [%thread]
&gt; %-5level %logger (%file:%line) - %message%newline" /&gt;
&gt;
&gt;                 &lt;/layout&gt;
&gt;
&gt;     &lt;/appender&gt;
&gt;
&gt;
&gt;
&gt; It doesn’t delete the files when I get to 10.
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Using RollingFileAppender with style=Date.</title>
<author><name>&quot;David Gerler&quot; &lt;dgerler@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c003601ca7368$ba341950$2e9c4bf0$@com%3e"/>
<id>urn:uuid:%3c003601ca7368$ba341950$2e9c4bf0$@com%3e</id>
<updated>2009-12-02T16:01:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
How do I make it only keep a certain number of files when using the
rollingstyle = date? I've looked on the website and have not been able to
find an example of anything talking about it. This is what I have now:

 

    &lt;appender name="Communications"
type="log4net.Appender.RollingFileAppender"&gt;

                &lt;file value="c:/log/register/gis/communications.txt" /&gt;

                &lt;appendToFile value="true" /&gt;

                 &lt;maxSizeRollBackups value="10" /&gt;

&lt;rollingStyle value="Date" /&gt;

                 &lt;datePattern value="yyyyMMdd-HHmm" /&gt; 

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

                                &lt;header value="[Header]&amp;#xD;&amp;#xA;" /&gt;

                                &lt;footer value="[Footer]&amp;#xD;&amp;#xA;" /&gt;

                                &lt;conversionPattern value="%date [%thread]
%-5level %logger (%file:%line) - %message%newline" /&gt;

                &lt;/layout&gt;

    &lt;/appender&gt;

 

It doesn't delete the files when I get to 10.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: RE: .NET 4.0 and Log4Net</title>
<author><name>Tiernan OToole &lt;lsmartman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c69cc010e0912020504g2aeea1e2vc519d4c47a287bdb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c69cc010e0912020504g2aeea1e2vc519d4c47a287bdb@mail-gmail-com%3e</id>
<updated>2009-12-02T13:04:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am trying to use the compiled dll from the website in a .net 4.0 app and
on build its fails... will play around a bit more and try get screen
shots...

On Dec 2, 2009 12:19 PM, "Roy Chastain" &lt;Roy@roychastain.org&gt; wrote:

Well, actually, if you compile with NET_2_0 defined for use with .Net
2.0, it uses System.Net.Mail.

However, the ASPNetTraceAppender does reference the System.Web namespace
for access to the HttpContext class.

In both versions 2.0 and 4.0 of the framework, this class is in
System.Web.dll so there should be no difference from current
development.

----------------------------------------------------------------------
Roy Chastain

-----Original Message----- From: Ron Grabowski [mailto:
rongrabowski@yahoo.com] Sent: Tuesday, D...


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: .NET 4.0 and Log4Net</title>
<author><name>&quot;Roy Chastain&quot; &lt;Roy@roychastain.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3cFFE6362EE00A4C4E83A98981EF88A3640EBE8D@zeus.roychastain.org%3e"/>
<id>urn:uuid:%3cFFE6362EE00A4C4E83A98981EF88A3640EBE8D@zeus-roychastain-org%3e</id>
<updated>2009-12-02T12:19:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, actually, if you compile with NET_2_0 defined for use with .Net
2.0, it uses System.Net.Mail.

However, the ASPNetTraceAppender does reference the System.Web namespace
for access to the HttpContext class.

In both versions 2.0 and 4.0 of the framework, this class is in
System.Web.dll so there should be no difference from current
development.

----------------------------------------------------------------------
Roy Chastain




-----Original Message-----
From: Ron Grabowski [mailto:rongrabowski@yahoo.com] 
Sent: Tuesday, December 01, 2009 21:26
To: Log4NET User
Subject: Re: .NET 4.0 and Log4Net

Well, its a known issue in the sense that its had that dependency for 8+
years: System.Web.Mail


________________________________

From: Tiernan OToole &lt;lsmartman@gmail.com&gt;
To: log4net-user@logging.apache.org
Sent: Tue, December 1, 2009 9:12:55 AM
Subject: .NET 4.0 and Log4Net


Good morning all.
 
when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error
about Log4Net needing System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: .NET 4.0 and Log4Net</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-user/200912.mbox/%3c227252.84888.qm@web30502.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c227252-84888-qm@web30502-mail-mud-yahoo-com%3e</id>
<updated>2009-12-02T02:25:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, its a known issue in the sense that its had that dependency for 8+ years: System.Web.Mail



________________________________
From: Tiernan OToole &lt;lsmartman@gmail.com&gt;
To: log4net-user@logging.apache.org
Sent: Tue, December 1, 2009 9:12:55 AM
Subject: .NET 4.0 and Log4Net


Good morning all.
 
when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error about Log4Net needing
System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com


</pre>
</div>
</content>
</entry>
<entry>
<title>.NET 4.0 and Log4Net</title>
<author><name>Tiernan OToole &lt;lsmartman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c69cc010e0912010612vce0d37s75416f4070b9bdd6@mail.gmail.com%3e"/>
<id>urn:uuid:%3c69cc010e0912010612vce0d37s75416f4070b9bdd6@mail-gmail-com%3e</id>
<updated>2009-12-01T14:12:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Good morning all.

when trying to use Log4Net (1.2.10) with .NET 4.0, i am getting an error
about Log4Net needing System.Web... is this a known issue?

-- 
Tiernan O'Toole
blog.lotas-smartman.net
www.tiernanotoolephotography.com
www.the-hairy-one.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Using RollingFileAppender with style=Date.</title>
<author><name>&quot;David Gerler&quot; &lt;dgerler@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200912.mbox/%3c03ac01ca721c$166db620$43492260$@com%3e"/>
<id>urn:uuid:%3c03ac01ca721c$166db620$43492260$@com%3e</id>
<updated>2009-12-01T00:20:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
How do I make it only keep a certain number of files when using the
rollingstyle = date? I've looked on the website and have not been able to
find an example of anything talking about it. This is what I have now:

 

    &lt;appender name="Communications"
type="log4net.Appender.RollingFileAppender"&gt;

                &lt;file value="c:/log/register/gis/communications.txt" /&gt;

                &lt;appendToFile value="true" /&gt;

                 &lt;maxSizeRollBackups value="10" /&gt;

&lt;rollingStyle value="Date" /&gt;

                 &lt;datePattern value="yyyyMMdd-HHmm" /&gt; 

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

                                &lt;header value="[Header]&amp;#xD;&amp;#xA;" /&gt;

                                &lt;footer value="[Footer]&amp;#xD;&amp;#xA;" /&gt;

                                &lt;conversionPattern value="%date [%thread]
%-5level %logger (%file:%line) - %message%newline" /&gt;

                &lt;/layout&gt;

    &lt;/appender&gt;

 

It doesn't delete the files when I get to 10.



</pre>
</div>
</content>
</entry>
<entry>
<title>Customized mail subject fo SmtpAppender</title>
<author><name>Petite Escalope &lt;miniscalope@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c6af26d830911301507u66c23fb0s9d02ec781f377cb1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6af26d830911301507u66c23fb0s9d02ec781f377cb1@mail-gmail-com%3e</id>
<updated>2009-11-30T23:07:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,
I am using log4net for a web project and would like to make customized mail
subjects my email appender. I already tried something like :

*          &lt;subject type="log4net.Util.PatternString" value="CovCake LOG
INFO : %property{mailsubject}" /&gt;*

* public static void MailInfo(string msg, string subjectDetails)*

*            {*
*                log4net.ThreadContext.Properties["mailsubject"] =
subjectDetails;*
*                Log.Mail.Info(msg);*
*                log4net.ThreadContext.Properties.Clear();*
*            }*
*
*
But it renders CovCake LOG INFO : (null).
*
*
Is there a way to customize mail subject natively (i mean without overriding
existing classes or extending the SmtpAppender)?
*
*
*Thank you very much. Sorry for my english.*

Best *regards*


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: webapplication logging - one log file per user</title>
<author><name>&quot;Walden H. Leverich&quot; &lt;WaldenL@TechSoftInc.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c43A10173A6B4F54BACFACFB39EBD4755733ADC@ex2.techsoftwareinc.com%3e"/>
<id>urn:uuid:%3c43A10173A6B4F54BACFACFB39EBD4755733ADC@ex2-techsoftwareinc-com%3e</id>
<updated>2009-11-30T20:31:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sounds to me like a race-condition in the making. Follow the timeline:

 

User1 Logs in

Set GlobalContext = User1

Configure

Log

 

All is good. But what about:

 

User1 Logs in

Set GlobalContext = User1

User2 Logs in

Set GlobalContext = User2

Configure (from first login)

Log something

Configure (from second login)

Log something else

 

I'll bet both log entries end up in the second file.

 

-Walden

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com &lt;mailto:WaldenL@TechSoftInc.com&gt; 
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Shekar [mailto:shivarajece@gmail.com] 
Sent: Monday, November 30, 2009 11:21 AM
To: Log4NET User
Subject: Re: webapplication logging - one log file per user

 

Well, Thanks to everyone for the suggestions.

 

At last I got what I wanted. Following were the steps I followed:

 

1. Set the file name dynamically using GlobalContext [you can
ThreadContext as well] property which the user who logged in.

 

2. Load the config file using XmlConfigurator.Configure(ConfigFile).

 

3. Now use GetLogger(type())

This working is perfectly as expected.

Thanks again.

Raj.

On Mon, Nov 30, 2009 at 8:36 PM, Walden H. Leverich
&lt;WaldenL@techsoftinc.com&gt; wrote:

I understand it's not your exact requirement, but what about including
the user name in each message logged, but pushing it into the NDC? We
have a similar requirement to include the client name in our
application, and we use a single log file (per day) but every request
starts with a NDC.Push(ClientID) step. Then it's a trivial job to grep
the log file for the client name. Likewise, when you need to see the log
file for JoeUser you could just grep for JoeUser. 

 

If you need them maintained then you could just split the files after
the fact by user name. 

 

-Walden

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Shekar [mailto:shivarajece@gmail.com] 
Sent: Friday, November 27, 2009 11:47 PM 


To: log4net-user@logging.apache.org

Subject: webapplication logging - one log file per user

 

Hi,

 

Please help me with this query in using log4net.

 

I am using log4net in mhy we application. I am facing issues in
configuring log4net to log errors at user level. 

 

That is, If user X logs in, I like to create file name X and all error
for user X should be written in X.log. Siilarly if Y user logs in the
log file should be in name of Y.log and the most important point to note
is, they could log in concurrently.

 

I tried the luck by creating log files whose name would be framed
dynamically as soon as the user logs in. But issue here, if they are not
using the application at the same time, the log files are creeated with
correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and
error of second user has been recorded in log file that is created for
FIRST user.

 

Please help me in this.

 

Thanks much.

 

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: webapplication logging - one log file per user</title>
<author><name>Shekar &lt;shivarajece@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cd8b614dc0911300939q4cbdccdcta3c403e3b7fbf4d8@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8b614dc0911300939q4cbdccdcta3c403e3b7fbf4d8@mail-gmail-com%3e</id>
<updated>2009-11-30T17:39:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
No. It has passed my initial test ie., POC. Let me test it thoroughly after
integration and update you.

Regards,
Raj.




On Mon, Nov 30, 2009 at 11:04 PM, Matt Lund &lt;mlund@control4.com&gt; wrote:

&gt;  Be careful about using the global context…  In a scenario where you have
&gt; two users logged in simultaneously wouldn’t you have problems?
&gt;
&gt;
&gt;
&gt; *From:* Shekar [mailto:shivarajece@gmail.com]
&gt; *Sent:* Monday, November 30, 2009 9:21 AM
&gt; *To:* Log4NET User
&gt; *Subject:* Re: webapplication logging - one log file per user
&gt;
&gt;
&gt;
&gt; Well, Thanks to everyone for the suggestions.
&gt;
&gt;
&gt;
&gt; At last I got what I wanted. Following were the steps I followed:
&gt;
&gt;
&gt;
&gt; 1. Set the file name dynamically using GlobalContext [you can ThreadContext
&gt; as well] property which the user who logged in.
&gt;
&gt;
&gt;
&gt; 2. Load the config file using XmlConfigurator.Configure(ConfigFile).
&gt;
&gt;
&gt;
&gt; 3. Now use GetLogger(type())
&gt;
&gt; This working is perfectly as expected.
&gt;
&gt; Thanks again.
&gt;
&gt; Raj.
&gt;
&gt; On Mon, Nov 30, 2009 at 8:36 PM, Walden H. Leverich &lt;
&gt; WaldenL@techsoftinc.com&gt; wrote:
&gt;
&gt; I understand it's not your exact requirement, but what about including the
&gt; user name in each message logged, but pushing it into the NDC? We have a
&gt; similar requirement to include the client name in our application, and we
&gt; use a single log file (per day) but every request starts with a
&gt; NDC.Push(ClientID) step. Then it's a trivial job to grep the log file for
&gt; the client name. Likewise, when you need to see the log file for JoeUser you
&gt; could just grep for JoeUser.
&gt;
&gt;
&gt;
&gt; If you need them maintained then you could just split the files after the
&gt; fact by user name.
&gt;
&gt;
&gt;
&gt; -Walden
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Walden H Leverich III
&gt; Tech Software &amp;
&gt;
&gt; BEC - IRBManager
&gt; (516) 627-3800 x3051
&gt; WaldenL@TechSoftInc.com
&gt; http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt;
&gt; http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt;
&gt;
&gt;
&gt; Quiquid latine dictum sit altum viditur.
&gt; (Whatever is said in Latin seems profound.)
&gt;
&gt;
&gt;
&gt; *From:* Shekar [mailto:shivarajece@gmail.com]
&gt; *Sent:* Friday, November 27, 2009 11:47 PM
&gt;
&gt;
&gt; *To:* log4net-user@logging.apache.org
&gt;
&gt; *Subject:* webapplication logging - one log file per user
&gt;
&gt;
&gt;
&gt; Hi,
&gt;
&gt;
&gt;
&gt; Please help me with this query in using log4net.
&gt;
&gt;
&gt;
&gt; I am using log4net in mhy we application. I am facing issues in configuring
&gt; log4net to log errors at user level.
&gt;
&gt;
&gt;
&gt; That is, If user X logs in, I like to create file name X and all error for
&gt; user X should be written in X.log. Siilarly if Y user logs in the log file
&gt; should be in name of Y.log and the most important point to note is, they
&gt; could log in concurrently.
&gt;
&gt;
&gt;
&gt; I tried the luck by creating log files whose name would be framed
&gt; dynamically as soon as the user logs in. But issue here, if they are not
&gt; using the application at the same time, the log files are creeated with
&gt; correct name and writing as expected, but if both users have active
&gt; sessions, log file is created only for user who FIRST logged in and error of
&gt; second user has been recorded in log file that is created for FIRST user.
&gt;
&gt;
&gt;
&gt; Please help me in this.
&gt;
&gt;
&gt;
&gt; Thanks much.
&gt;
&gt;
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: webapplication logging - one log file per user</title>
<author><name>&quot;Matt Lund&quot; &lt;mlund@control4.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cF34FFECB74C9FE4FB92343D8920DF78702365311@c4mail02.control4.com%3e"/>
<id>urn:uuid:%3cF34FFECB74C9FE4FB92343D8920DF78702365311@c4mail02-control4-com%3e</id>
<updated>2009-11-30T17:34:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Be careful about using the global context...  In a scenario where you
have two users logged in simultaneously wouldn't you have problems?

 

From: Shekar [mailto:shivarajece@gmail.com] 
Sent: Monday, November 30, 2009 9:21 AM
To: Log4NET User
Subject: Re: webapplication logging - one log file per user

 

Well, Thanks to everyone for the suggestions.

 

At last I got what I wanted. Following were the steps I followed:

 

1. Set the file name dynamically using GlobalContext [you can
ThreadContext as well] property which the user who logged in.

 

2. Load the config file using XmlConfigurator.Configure(ConfigFile).

 

3. Now use GetLogger(type())

This working is perfectly as expected.

Thanks again.

Raj.

On Mon, Nov 30, 2009 at 8:36 PM, Walden H. Leverich
&lt;WaldenL@techsoftinc.com&gt; wrote:

I understand it's not your exact requirement, but what about including
the user name in each message logged, but pushing it into the NDC? We
have a similar requirement to include the client name in our
application, and we use a single log file (per day) but every request
starts with a NDC.Push(ClientID) step. Then it's a trivial job to grep
the log file for the client name. Likewise, when you need to see the log
file for JoeUser you could just grep for JoeUser. 

 

If you need them maintained then you could just split the files after
the fact by user name. 

 

-Walden

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Shekar [mailto:shivarajece@gmail.com] 
Sent: Friday, November 27, 2009 11:47 PM 


To: log4net-user@logging.apache.org

Subject: webapplication logging - one log file per user

 

Hi,

 

Please help me with this query in using log4net.

 

I am using log4net in mhy we application. I am facing issues in
configuring log4net to log errors at user level. 

 

That is, If user X logs in, I like to create file name X and all error
for user X should be written in X.log. Siilarly if Y user logs in the
log file should be in name of Y.log and the most important point to note
is, they could log in concurrently.

 

I tried the luck by creating log files whose name would be framed
dynamically as soon as the user logs in. But issue here, if they are not
using the application at the same time, the log files are creeated with
correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and
error of second user has been recorded in log file that is created for
FIRST user.

 

Please help me in this.

 

Thanks much.

 

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: webapplication logging - one log file per user</title>
<author><name>Shekar &lt;shivarajece@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cd8b614dc0911300820kb63c939i3340bc2ba3dc34c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8b614dc0911300820kb63c939i3340bc2ba3dc34c@mail-gmail-com%3e</id>
<updated>2009-11-30T16:20:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well, Thanks to everyone for the suggestions.

At last I got what I wanted. Following were the steps I followed:

1. Set the file name dynamically using GlobalContext [you can ThreadContext
as well] property which the user who logged in.

2. Load the config file using XmlConfigurator.Configure(ConfigFile).

3. Now use GetLogger(type())

This working is perfectly as expected.
Thanks again.
Raj.

On Mon, Nov 30, 2009 at 8:36 PM, Walden H. Leverich &lt;WaldenL@techsoftinc.com
&gt; wrote:

&gt;  I understand it's not your exact requirement, but what about including
&gt; the user name in each message logged, but pushing it into the NDC? We have a
&gt; similar requirement to include the client name in our application, and we
&gt; use a single log file (per day) but every request starts with a
&gt; NDC.Push(ClientID) step. Then it's a trivial job to grep the log file for
&gt; the client name. Likewise, when you need to see the log file for JoeUser you
&gt; could just grep for JoeUser.
&gt;
&gt;
&gt;
&gt; If you need them maintained then you could just split the files after the
&gt; fact by user name.
&gt;
&gt;
&gt;
&gt; -Walden
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; Walden H Leverich III
&gt; Tech Software &amp;
&gt;
&gt; BEC - IRBManager
&gt; (516) 627-3800 x3051
&gt; WaldenL@TechSoftInc.com
&gt; http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt;
&gt; http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt;
&gt;
&gt;
&gt; Quiquid latine dictum sit altum viditur.
&gt; (Whatever is said in Latin seems profound.)
&gt;
&gt;
&gt;
&gt; *From:* Shekar [mailto:shivarajece@gmail.com]
&gt; *Sent:* Friday, November 27, 2009 11:47 PM
&gt;
&gt; *To:* log4net-user@logging.apache.org
&gt; *Subject:* webapplication logging - one log file per user
&gt;
&gt;
&gt;
&gt; Hi,
&gt;
&gt;
&gt;
&gt; Please help me with this query in using log4net.
&gt;
&gt;
&gt;
&gt; I am using log4net in mhy we application. I am facing issues in configuring
&gt; log4net to log errors at user level.
&gt;
&gt;
&gt;
&gt; That is, If user X logs in, I like to create file name X and all error for
&gt; user X should be written in X.log. Siilarly if Y user logs in the log file
&gt; should be in name of Y.log and the most important point to note is, they
&gt; could log in concurrently.
&gt;
&gt;
&gt;
&gt; I tried the luck by creating log files whose name would be framed
&gt; dynamically as soon as the user logs in. But issue here, if they are not
&gt; using the application at the same time, the log files are creeated with
&gt; correct name and writing as expected, but if both users have active
&gt; sessions, log file is created only for user who FIRST logged in and error of
&gt; second user has been recorded in log file that is created for FIRST user.
&gt;
&gt;
&gt;
&gt; Please help me in this.
&gt;
&gt;
&gt;
&gt; Thanks much.
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: webapplication logging - one log file per user</title>
<author><name>&quot;Walden H. Leverich&quot; &lt;WaldenL@TechSoftInc.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c43A10173A6B4F54BACFACFB39EBD4755733AC2@ex2.techsoftwareinc.com%3e"/>
<id>urn:uuid:%3c43A10173A6B4F54BACFACFB39EBD4755733AC2@ex2-techsoftwareinc-com%3e</id>
<updated>2009-11-30T15:06:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I understand it's not your exact requirement, but what about including
the user name in each message logged, but pushing it into the NDC? We
have a similar requirement to include the client name in our
application, and we use a single log file (per day) but every request
starts with a NDC.Push(ClientID) step. Then it's a trivial job to grep
the log file for the client name. Likewise, when you need to see the log
file for JoeUser you could just grep for JoeUser. 

 

If you need them maintained then you could just split the files after
the fact by user name. 

 

-Walden

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Shekar [mailto:shivarajece@gmail.com] 
Sent: Friday, November 27, 2009 11:47 PM
To: log4net-user@logging.apache.org
Subject: webapplication logging - one log file per user

 

Hi,

 

Please help me with this query in using log4net.

 

I am using log4net in mhy we application. I am facing issues in
configuring log4net to log errors at user level. 

 

That is, If user X logs in, I like to create file name X and all error
for user X should be written in X.log. Siilarly if Y user logs in the
log file should be in name of Y.log and the most important point to note
is, they could log in concurrently.

 

I tried the luck by creating log files whose name would be framed
dynamically as soon as the user logs in. But issue here, if they are not
using the application at the same time, the log files are creeated with
correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and
error of second user has been recorded in log file that is created for
FIRST user.

 

Please help me in this.

 

Thanks much.

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: webapplication logging - one log file per user</title>
<author><name>&quot;Srinivas Repala&quot; &lt;srinivas.repala@atparinc.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c179710830-1259543183-cardhu_decombobulator_blackberry.rim.net-1892626835-@bda951.bisx.prod.on.blackberry%3e"/>
<id>urn:uuid:%3c179710830-1259543183-cardhu_decombobulator_blackberry-rim-net-1892626835-@bda951-bisx-prod-on-blackberry%3e</id>
<updated>2009-11-30T01:06:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
if I hv understood it correct, By using log thread context, we should capture each user in
the application.

 A new appender can be added for each user to capture the log. 
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Shekar &lt;shivarajece@gmail.com&gt;
Date: Sun, 29 Nov 2009 11:16:56 
To: Log4NET User&lt;log4net-user@logging.apache.org&gt;
Subject: Re: webapplication logging - one log file per user

No Karim,

My requirement is like that. We need to maintain user level logging rather
than at application level. Pls try to help me out. I am desperate.

Thanks,
Raj.

On Sat, Nov 28, 2009 at 11:41 PM, Karim Bourouba &lt;karym6@hotmail.com&gt; wrote:

&gt; Hi Raj,
&gt;
&gt; surely there wouldnt be a new log created for each user
&gt; interaction? Wouldnt it be better for you to just record each interaction on
&gt; one log?
&gt;
&gt;
&gt;
&gt;
&gt; ------------------------------
&gt; Date: Sat, 28 Nov 2009 19:03:24 +0530
&gt; Subject: Re: webapplication logging - one log file per user
&gt;
&gt; From: shivarajece@gmail.com
&gt; To: log4net-user@logging.apache.org
&gt;
&gt; Thanks Karim.
&gt;
&gt; I don't have any other logging.
&gt;
&gt; There is only one type of logging - log all the errors per user in a log
&gt; whose name would be the person who logged in. If 10 users are goign to use
&gt; the application 10 seperate logs should be there.
&gt;
&gt; Help me out.
&gt;
&gt; Regards,
&gt; Raj.
&gt;
&gt; On Sat, Nov 28, 2009 at 4:31 PM, Karim Bourouba &lt;karym6@hotmail.com&gt;wrote:
&gt;
&gt; Does your web app already store this information in a seperate log, or at a
&gt; different level? If it does, it may be easy to create a new appender to get
&gt; the information out of this source rather than shoehorning it all into
&gt; log4net.
&gt;
&gt;
&gt;
&gt;
&gt; ------------------------------
&gt; Date: Sat, 28 Nov 2009 10:16:44 +0530
&gt; Subject: webapplication logging - one log file per user
&gt; From: shivarajece@gmail.com
&gt; To: log4net-user@logging.apache.org
&gt;
&gt;
&gt;  Hi,
&gt;
&gt; Please help me with this query in using log4net.
&gt;
&gt; I am using log4net in mhy we application. I am facing issues in configuring
&gt; log4net to log errors at user level.
&gt;
&gt; That is, If user X logs in, I like to create file name X and all error for
&gt; user X should be written in X.log. Siilarly if Y user logs in the log file
&gt; should be in name of Y.log and the most important point to note is, they
&gt; could log in concurrently.
&gt;
&gt; I tried the luck by creating log files whose name would be framed
&gt; dynamically as soon as the user logs in. But issue here, if they are not
&gt; using the application at the same time, the log files are creeated with
&gt; correct name and writing as expected, but if both users have active
&gt; sessions, log file is created only for user who FIRST logged in and error of
&gt; second user has been recorded in log file that is created for FIRST user.
&gt;
&gt; Please help me in this.
&gt;
&gt; Thanks much.
&gt;
&gt;
&gt;  ------------------------------
&gt; Use Hotmail to send and receive mail from your different email accounts. Find
&gt; out how. &lt;http://clk.atdmt.com/UKM/go/186394592/direct/01/&gt;
&gt;
&gt;
&gt;
&gt;  ------------------------------
&gt; New! Receive and respond to mail from other email accounts from within
&gt; Hotmail Find out how. &lt;http://clk.atdmt.com/UKM/go/186394593/direct/01/&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: webapplication logging - one log file per user</title>
<author><name>Shekar &lt;shivarajece@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cd8b614dc0911282146y2d7ea552l44e12111ea298bf4@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8b614dc0911282146y2d7ea552l44e12111ea298bf4@mail-gmail-com%3e</id>
<updated>2009-11-29T05:46:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
No Karim,

My requirement is like that. We need to maintain user level logging rather
than at application level. Pls try to help me out. I am desperate.

Thanks,
Raj.

On Sat, Nov 28, 2009 at 11:41 PM, Karim Bourouba &lt;karym6@hotmail.com&gt; wrote:

&gt; Hi Raj,
&gt;
&gt; surely there wouldnt be a new log created for each user
&gt; interaction? Wouldnt it be better for you to just record each interaction on
&gt; one log?
&gt;
&gt;
&gt;
&gt;
&gt; ------------------------------
&gt; Date: Sat, 28 Nov 2009 19:03:24 +0530
&gt; Subject: Re: webapplication logging - one log file per user
&gt;
&gt; From: shivarajece@gmail.com
&gt; To: log4net-user@logging.apache.org
&gt;
&gt; Thanks Karim.
&gt;
&gt; I don't have any other logging.
&gt;
&gt; There is only one type of logging - log all the errors per user in a log
&gt; whose name would be the person who logged in. If 10 users are goign to use
&gt; the application 10 seperate logs should be there.
&gt;
&gt; Help me out.
&gt;
&gt; Regards,
&gt; Raj.
&gt;
&gt; On Sat, Nov 28, 2009 at 4:31 PM, Karim Bourouba &lt;karym6@hotmail.com&gt;wrote:
&gt;
&gt; Does your web app already store this information in a seperate log, or at a
&gt; different level? If it does, it may be easy to create a new appender to get
&gt; the information out of this source rather than shoehorning it all into
&gt; log4net.
&gt;
&gt;
&gt;
&gt;
&gt; ------------------------------
&gt; Date: Sat, 28 Nov 2009 10:16:44 +0530
&gt; Subject: webapplication logging - one log file per user
&gt; From: shivarajece@gmail.com
&gt; To: log4net-user@logging.apache.org
&gt;
&gt;
&gt;  Hi,
&gt;
&gt; Please help me with this query in using log4net.
&gt;
&gt; I am using log4net in mhy we application. I am facing issues in configuring
&gt; log4net to log errors at user level.
&gt;
&gt; That is, If user X logs in, I like to create file name X and all error for
&gt; user X should be written in X.log. Siilarly if Y user logs in the log file
&gt; should be in name of Y.log and the most important point to note is, they
&gt; could log in concurrently.
&gt;
&gt; I tried the luck by creating log files whose name would be framed
&gt; dynamically as soon as the user logs in. But issue here, if they are not
&gt; using the application at the same time, the log files are creeated with
&gt; correct name and writing as expected, but if both users have active
&gt; sessions, log file is created only for user who FIRST logged in and error of
&gt; second user has been recorded in log file that is created for FIRST user.
&gt;
&gt; Please help me in this.
&gt;
&gt; Thanks much.
&gt;
&gt;
&gt;  ------------------------------
&gt; Use Hotmail to send and receive mail from your different email accounts. Find
&gt; out how. &lt;http://clk.atdmt.com/UKM/go/186394592/direct/01/&gt;
&gt;
&gt;
&gt;
&gt;  ------------------------------
&gt; New! Receive and respond to mail from other email accounts from within
&gt; Hotmail Find out how. &lt;http://clk.atdmt.com/UKM/go/186394593/direct/01/&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: webapplication logging - one log file per user</title>
<author><name>Karim Bourouba &lt;karym6@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cBLU127-W1006974F32DC5E86CE8E9695990@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU127-W1006974F32DC5E86CE8E9695990@phx-gbl%3e</id>
<updated>2009-11-28T18:11:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Raj,

 

surely there wouldnt be a new log created for each user interaction? Wouldnt it be better
for you to just record each interaction on one log?


 




Date: Sat, 28 Nov 2009 19:03:24 +0530
Subject: Re: webapplication logging - one log file per user
From: shivarajece@gmail.com
To: log4net-user@logging.apache.org


Thanks Karim.
 
I don't have any other logging. 
 
There is only one type of logging - log all the errors per user in a log whose name would
be the person who logged in. If 10 users are goign to use the application 10 seperate logs
should be there.
 
Help me out.
 
Regards,
Raj.


On Sat, Nov 28, 2009 at 4:31 PM, Karim Bourouba &lt;karym6@hotmail.com&gt; wrote:


Does your web app already store this information in a seperate log, or at a different level?
If it does, it may be easy to create a new appender to get the information out of this source
rather than shoehorning it all into log4net.



  


Date: Sat, 28 Nov 2009 10:16:44 +0530
Subject: webapplication logging - one log file per user
From: shivarajece@gmail.com
To: log4net-user@logging.apache.org 






Hi,
 
Please help me with this query in using log4net.
 
I am using log4net in mhy we application. I am facing issues in configuring log4net to log
errors at user level. 
 
That is, If user X logs in, I like to create file name X and all error for user X should be
written in X.log. Siilarly if Y user logs in the log file should be in name of Y.log and the
most important point to note is, they could log in concurrently.
 
I tried the luck by creating log files whose name would be framed dynamically as soon as the
user logs in. But issue here, if they are not using the application at the same time, the
log files are creeated with correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and error of second user has
been recorded in log file that is created for FIRST user.
 
Please help me in this.
 
Thanks much.




Use Hotmail to send and receive mail from your different email accounts. Find out how.
 		 	   		  
_________________________________________________________________
Got more than one Hotmail account? Save time by linking them together
 http://clk.atdmt.com/UKM/go/186394591/direct/01/

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: webapplication logging - one log file per user</title>
<author><name>Shekar &lt;shivarajece@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cd8b614dc0911280533g6ad69611i80a9f3ae3f8e10da@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8b614dc0911280533g6ad69611i80a9f3ae3f8e10da@mail-gmail-com%3e</id>
<updated>2009-11-28T13:33:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Karim.

I don't have any other logging.

There is only one type of logging - log all the errors per user in a log
whose name would be the person who logged in. If 10 users are goign to use
the application 10 seperate logs should be there.

Help me out.

Regards,
Raj.

On Sat, Nov 28, 2009 at 4:31 PM, Karim Bourouba &lt;karym6@hotmail.com&gt; wrote:

&gt; Does your web app already store this information in a seperate log, or at a
&gt; different level? If it does, it may be easy to create a new appender to get
&gt; the information out of this source rather than shoehorning it all into
&gt; log4net.
&gt;
&gt;
&gt;
&gt;
&gt; ------------------------------
&gt; Date: Sat, 28 Nov 2009 10:16:44 +0530
&gt; Subject: webapplication logging - one log file per user
&gt; From: shivarajece@gmail.com
&gt; To: log4net-user@logging.apache.org
&gt;
&gt;
&gt;  Hi,
&gt;
&gt; Please help me with this query in using log4net.
&gt;
&gt; I am using log4net in mhy we application. I am facing issues in configuring
&gt; log4net to log errors at user level.
&gt;
&gt; That is, If user X logs in, I like to create file name X and all error for
&gt; user X should be written in X.log. Siilarly if Y user logs in the log file
&gt; should be in name of Y.log and the most important point to note is, they
&gt; could log in concurrently.
&gt;
&gt; I tried the luck by creating log files whose name would be framed
&gt; dynamically as soon as the user logs in. But issue here, if they are not
&gt; using the application at the same time, the log files are creeated with
&gt; correct name and writing as expected, but if both users have active
&gt; sessions, log file is created only for user who FIRST logged in and error of
&gt; second user has been recorded in log file that is created for FIRST user.
&gt;
&gt; Please help me in this.
&gt;
&gt; Thanks much.
&gt;
&gt;
&gt;  ------------------------------
&gt; Use Hotmail to send and receive mail from your different email accounts. Find
&gt; out how. &lt;http://clk.atdmt.com/UKM/go/186394592/direct/01/&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: webapplication logging - one log file per user</title>
<author><name>Karim Bourouba &lt;karym6@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cBLU127-W62A773CE2F38DC1BF493595990@phx.gbl%3e"/>
<id>urn:uuid:%3cBLU127-W62A773CE2F38DC1BF493595990@phx-gbl%3e</id>
<updated>2009-11-28T11:01:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Does your web app already store this information in a seperate log, or at a different level?
If it does, it may be easy to create a new appender to get the information out of this source
rather than shoehorning it all into log4net.



 



Date: Sat, 28 Nov 2009 10:16:44 +0530
Subject: webapplication logging - one log file per user
From: shivarajece@gmail.com
To: log4net-user@logging.apache.org



Hi,
 
Please help me with this query in using log4net.
 
I am using log4net in mhy we application. I am facing issues in configuring log4net to log
errors at user level. 
 
That is, If user X logs in, I like to create file name X and all error for user X should be
written in X.log. Siilarly if Y user logs in the log file should be in name of Y.log and the
most important point to note is, they could log in concurrently.
 
I tried the luck by creating log files whose name would be framed dynamically as soon as the
user logs in. But issue here, if they are not using the application at the same time, the
log files are creeated with correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and error of second user has
been recorded in log file that is created for FIRST user.
 
Please help me in this.
 
Thanks much.
 		 	   		  
_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/

</pre>
</div>
</content>
</entry>
<entry>
<title>webapplication logging - one log file per user</title>
<author><name>Shekar &lt;shivarajece@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cd8b614dc0911272046l38a8a9ach26607dff664d4b47@mail.gmail.com%3e"/>
<id>urn:uuid:%3cd8b614dc0911272046l38a8a9ach26607dff664d4b47@mail-gmail-com%3e</id>
<updated>2009-11-28T04:46:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 Hi,

Please help me with this query in using log4net.

I am using log4net in mhy we application. I am facing issues in configuring
log4net to log errors at user level.

That is, If user X logs in, I like to create file name X and all error for
user X should be written in X.log. Siilarly if Y user logs in the log file
should be in name of Y.log and the most important point to note is, they
could log in concurrently.

I tried the luck by creating log files whose name would be framed
dynamically as soon as the user logs in. But issue here, if they are not
using the application at the same time, the log files are creeated with
correct name and writing as expected, but if both users have active
sessions, log file is created only for user who FIRST logged in and error of
second user has been recorded in log file that is created for FIRST user.

Please help me in this.

Thanks much.


</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-user/200911.mbox/%3c4B045C5D.7040900@free.fr%3e"/>
<id>urn:uuid:%3c4B045C5D-7040900@free-fr%3e</id>
<updated>2009-11-18T20:43: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>Re: precise time stamp</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-user/200911.mbox/%3c769436.17157.qm@web30504.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c769436-17157-qm@web30504-mail-mud-yahoo-com%3e</id>
<updated>2009-11-12T22:58:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Do you want to control how the time is displayed in the log file or fundamentally alter how
log4net tracks time?

If you want to use a custom DateTime.Now to record when the event created you could start
up by defining your own IDateTime:

// untested
public interface IDateTime
{
    DateTime Now { get; }
}

then make it easy to get an instance of IDateTime:

// untested
public class DateTimeProvider : IDateTime
{
    public static readonly DateTimeProvider DateTimeNow = new DateTimeProvider(() =&gt; DateTime.Now);
    public static readonly DateTimeProvider DateTimeUtcNow = new DateTimeProvider(() =&gt;
DateTime.UtcNow);

    private Func&lt;DateTime&gt; _dateTimeGetter;

    public DateTimeProvider(Func&lt;DateTime&gt; dateTimeGetter)
    {
        _dateTimeGetter = dateTimeGetter;
    }

    public DateTime Now
    {
        get { return _dateTimeGetter(); }
    }

    public void SetDateTimeFunc(Func&lt;DateTime&gt; dateTimeGetter)
    {
        _dateTimeGetter = dateTimeGetter;
    }
}

then you could tweak how the LoggingEventData object is created:

// untested
class DateTimeProviderLogger : LogImpl
{
    private readonly static Type declaringType = typeof(DateTimeProviderLogger);
    
    private readonly IDateTime dateTimeProvider;

    public DateTimeProviderLogger(ILogger logger, IDateTime dateTimeProvider) : base(logger)
    {
        this.dateTimeProvider = dateTimeProvider;
    }

    public override void Debug(object message)
    {
        Logger.Log(createLoggingEvnet(Level.Debug, message));
    }

    private LoggingEvent createLoggingEvnet(Level level, object message)
    {
        return new LoggingEvent(
            declaringType, 
            Logger.Repository,
            createLoggingEventData(level, message));
    }

    private LoggingEventData createLoggingEventData(Level level, object message)
    {
        return new LoggingEventData
                   {
                       Level = level,
                       LoggerName = Logger.Name,
                       Message = message.ToString(),
                       TimeStamp = dateTimeProvider.Now
                   };
    }
}

The calling code might look something like this:

// untested
public static class LogManager2
{
    public static ILog GetLogger&lt;T&gt;()
    {
        return new DateTimeProviderLogger(LogManager.GetLogger(typeof(T)).Logger, DateTimeProvider.DateTimeNow);
    }
}

// untested
class Program
{
    public static readonly ILog log = LogManager2.GetLogger&lt;Program&gt;();
}




________________________________
From: Ayrat Khalimov &lt;airat.halimov@gmail.com&gt;
To: log4net-user@logging.apache.org
Sent: Thu, November 12, 2009 7:49:13 AM
Subject: precise time stamp


Hi, there

I need to log events with precise time stamps (more precise than 15 ms System.DateTime). 

But it seems to be impossible to do it with log4net. 
It is impossible to change default timer neither to implement special appender that will set
precise value to TimeStamp.
The only solution I see is to write precise time to the event message body.

Any ideas, colleagues?

-- 
Sincerely, 
Ayrat Khalimov.

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: precise time stamp</title>
<author><name>&quot;Roy Chastain&quot; &lt;Roy@roychastain.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3cFFE6362EE00A4C4E83A98981EF88A3640EBE45@zeus.roychastain.org%3e"/>
<id>urn:uuid:%3cFFE6362EE00A4C4E83A98981EF88A3640EBE45@zeus-roychastain-org%3e</id>
<updated>2009-11-12T13:02:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have never thought about the granularity of the time source being
used, but I have log entries as often as 1 ms apart.

Now that I think about this, why do you believe that your are limited to
15ms resolution.  The documentation for System.DateTime says it uses 100
nanosecond ticks.

I simply place the time stamp in the log entry with the following
conversion pattern
&lt;param name="ConversionPattern" value="%d{dd HH:mm:ss.fff} [%4t]
%P{instance}::%M - %m%n" /&gt;

This yields the following entries
20 10:28:12.214 [ServiceThread] GSNT(17)::.ctor - Constructed -
Id/Base/Count/Type:
f4119ba3-ce74-4729-bac9-ccfe5a9b300e/o2203/6/NumericOnly
20 10:28:12.215 [ServiceThread] FCICMSD::.ctor - Constructed OpenId -
Name/VDest/Pool: FCICMSD/FCICMS/GSNT(17)

Since this is a service, I put the day in and then the time.

----------------------------------------------------------------------
Roy Chastain




-----Original Message-----
From: Ayrat Khalimov [mailto:airat.halimov@gmail.com] 
Sent: Thursday, November 12, 2009 07:49
To: log4net-user@logging.apache.org
Subject: precise time stamp

Hi, there

I need to log events with precise time stamps (more precise than 15 ms
System.DateTime). 

But it seems to be impossible to do it with log4net. 
It is impossible to change default timer neither to implement special
appender that will set precise value to TimeStamp.
The only solution I see is to write precise time to the event message
body.

Any ideas, colleagues?


-- 
Sincerely, 
Ayrat Khalimov.




</pre>
</div>
</content>
</entry>
<entry>
<title>precise time stamp</title>
<author><name>Ayrat Khalimov &lt;airat.halimov@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c35c06ade0911120449x3aa2cf5bt913d343839c334c9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c35c06ade0911120449x3aa2cf5bt913d343839c334c9@mail-gmail-com%3e</id>
<updated>2009-11-12T12:49:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi, there

I need to log events with precise time stamps (more precise than 15 ms
System.DateTime).

But it seems to be impossible to do it with log4net.
It is impossible to change default timer neither to implement special
appender that will set precise value to TimeStamp.
The only solution I see is to write precise time to the event message body.

Any ideas, colleagues?

-- 
Sincerely,
Ayrat Khalimov.


</pre>
</div>
</content>
</entry>
<entry>
<title>looking for complete example with BufferingForwardingAppender</title>
<author><name>Chris Harrington &lt;back5576@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200911.mbox/%3c563381.23344.qm@web51905.mail.re2.yahoo.com%3e"/>
<id>urn:uuid:%3c563381-23344-qm@web51905-mail-re2-yahoo-com%3e</id>
<updated>2009-11-02T19:33:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I would like my RollingFileAppender to log the last 10 messages at any level
when there is a message at the error level.

I am trying to use the BufferingForwardingAppender for this purpose, but
can't figure out the right levels/thresholds to have it behave properly. 
Is this even possible? Do I need to have a separate RollingFileAppender 
separate from my main log?
 
Thanks,
Chris


</pre>
</div>
</content>
</entry>
<entry>
<title>Add info about HttpRequest/Context</title>
<author><name>Dmitiry Nagirnyak &lt;dnagir@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3c73ee720a0910271735r4ab6a69kc3505bea94a32a25@mail.gmail.com%3e"/>
<id>urn:uuid:%3c73ee720a0910271735r4ab6a69kc3505bea94a32a25@mail-gmail-com%3e</id>
<updated>2009-10-28T00:35:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

In the ASP.NET app I use Application_Error to log unhanded exceptions. I
usually use log.Fatal("bla", exception).
But I want the log to include the information about the request (URL, HTTP
headers, source IP and so on).

So the question is if log4net has out of the box functionality for that with
some kind of renderers or similar?

Or is it the only way to do it is to assemble all the info I want to log
into a string manually and log it?

Cheers,
Dmitriy.
http://dnagir.blogspot.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Release Date of Log4Net.DLL Ver 1.2.11</title>
<author><name>&quot;Purna, Nagabhairu&quot; &lt;Nagabhairu.Purna@ca.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3c192F86D426AF294FAA9CE6F2D7452B399019EF@INHYMS12.ca.com%3e"/>
<id>urn:uuid:%3c192F86D426AF294FAA9CE6F2D7452B399019EF@INHYMS12-ca-com%3e</id>
<updated>2009-10-26T16:04:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Team,

 

I've a customer issue which is going to address in the version 1.2.11 of
Log4Net.DLL. Is there any tentative release date for the same?

 

Regards, Purna.

 



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: multi process settings</title>
<author><name>&quot;David Gerler&quot; &lt;dgerler@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3c070501ca5433$302c5f00$90851d00$@com%3e"/>
<id>urn:uuid:%3c070501ca5433$302c5f00$90851d00$@com%3e</id>
<updated>2009-10-23T22:50:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Perhaps database logging would be better.

 

From: Florin Daneliuc [mailto:florin.daneliuc@iquestint.com] 
Sent: Friday, October 23, 2009 8:26 AM
To: Log4NET User
Subject: RE: multi process settings

 

I think you can also instruct the logger to try to acquire the lock of the
file and release it as soon as possible.

Anyway, for multiple process logging, a file is not the best way. Maiby an
event log (windows) or syslog (nix) or a network sink might work better.

 

florin

 

  _____  

From: Jordan JBO. Bouclet [mailto:jbouclet@scotler.fr] 
Sent: Friday, October 23, 2009 12:55 PM
To: log4net-user@logging.apache.org
Subject: RE: multi process settings

Hi,

 

I have got a problem with the settings of log4net about multi access on a
file.

My context : I'v got a dll wich log into a trace.log. That dll is used by 2
different programs. When the first create the instance of log4net, the 2nd
one can't write into the trace.log.

I can't find the right settings to do that. The best behavior would be to
create a new file with YYYYMMdd-HH_mm_ss when the instance can't write into
the file.

 

For now, I did, following the config-exemple from the apache site : 

 


        &lt;log4net&gt;

               &lt;root&gt;

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

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

               &lt;/root&gt;

               &lt;appender name="FileAppender"
type="log4net.Appender.RollingFileAppender"&gt;

                       &lt;file value="E:\\Log\\Trace.log" /&gt;

                       &lt;appendToFile value="True" /&gt;

                       &lt;rollingStyle value="Date" /&gt;

                       &lt;staticLogFileName value="false" /&gt;

                       &lt;lockingModel
type="log4net.Appender.FileAppender+MinimalLock " /&gt;

                       &lt;datePattern value="yyyyMMdd-HHmm" /&gt;

                       &lt;maxSizeRollBackups value="-1" /&gt;

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

                               &lt;conversionPattern value="%date [%-5level] :
%message%newline" /&gt;

                       &lt;/layout&gt;

               &lt;/appender&gt;

               

        &lt;/log4net&gt;

 

But I'm having an error with the 2nd instance wich is :
System.TypeLoadException: Could not load type
[log4net.Appender.FileAppender+MinimalLock ]. Tried assembly [log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821] and all
loaded assemblies.

 

Is there a solution to that ? 

 

Thanks.

 



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: multi process settings</title>
<author><name>&quot;Jordan JBO. Bouclet&quot; &lt;jbouclet@scotler.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3cEE7DD7F009A9FE42A3B59F8A614A8D5ABB34C6@siege.genienum.com%3e"/>
<id>urn:uuid:%3cEE7DD7F009A9FE42A3B59F8A614A8D5ABB34C6@siege-genienum-com%3e</id>
<updated>2009-10-23T14:54:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yep, i did it, it works, but now i'v got an other problem, i can't use an appendFile with the
rolling on size or by date.

Here is what I've done : 

&lt;appender name="FileAppender" type="log4net.Appender.FileAppender"&gt; 

                                 &lt;file value="E:\\Log\\ArlSQL_Log\\ArlSql.log" /&gt; 

                                 &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock"
/&gt; 

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

                &lt;/appender&gt;

 

But for example, &lt;maximumFileSize value="1MB" /&gt; isn't usable with a type="log4net.Appender.FileAppender"&gt;
L

 

De : Florin Daneliuc [mailto:florin.daneliuc@iquestint.com] 
Envoyé : vendredi 23 octobre 2009 15:26
À : Log4NET User
Objet : RE: multi process settings

 

I think you can also instruct the logger to try to acquire the lock of the file and release
it as soon as possible.

Anyway, for multiple process logging, a file is not the best way. Maiby an event log (windows)
or syslog (nix) or a network sink might work better.

 

florin

 

________________________________

From: Jordan JBO. Bouclet [mailto:jbouclet@scotler.fr] 
Sent: Friday, October 23, 2009 12:55 PM
To: log4net-user@logging.apache.org
Subject: RE: multi process settings

Hi,

 

I have got a problem with the settings of log4net about multi access on a file.

My context : I'v got a dll wich log into a trace.log. That dll is used by 2 different programs.
When the first create the instance of log4net, the 2nd one can't write into the trace.log.

I can't find the right settings to do that. The best behavior would be to create a new file
with YYYYMMdd-HH_mm_ss when the instance can't write into the file.

 

For now, I did, following the config-exemple from the apache site : 

 

        &lt;log4net&gt;

               &lt;root&gt;

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

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

               &lt;/root&gt;

               &lt;appender name="FileAppender" type="log4net.Appender.RollingFileAppender"&gt;

                       &lt;file value="E:\\Log\\Trace.log" /&gt;

                       &lt;appendToFile value="True" /&gt;

                       &lt;rollingStyle value="Date" /&gt;

                       &lt;staticLogFileName value="false" /&gt;

                       &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock "
/&gt;

                       &lt;datePattern value="yyyyMMdd-HHmm" /&gt;

                       &lt;maxSizeRollBackups value="-1" /&gt;

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

                               &lt;conversionPattern value="%date [%-5level] : %message%newline"
/&gt;

                       &lt;/layout&gt;

               &lt;/appender&gt;

               

        &lt;/log4net&gt;

 

But I'm having an error with the 2nd instance wich is : System.TypeLoadException: Could not
load type [log4net.Appender.FileAppender+MinimalLock ]. Tried assembly [log4net, Version=1.2.10.0,
Culture=neutral, PublicKeyToken=1b44e1d426115821] and all loaded assemblies.

 

Is there a solution to that ? 

 

Thanks.

 



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: multi process settings</title>
<author><name>Florin Daneliuc &lt;florin.daneliuc@iquestint.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3c5E68591E674B394A9493D57B87806B9B6617859FEB@exch2007.esp.local%3e"/>
<id>urn:uuid:%3c5E68591E674B394A9493D57B87806B9B6617859FEB@exch2007-esp-local%3e</id>
<updated>2009-10-23T13:26:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think you can also instruct the logger to try to acquire the lock of the file and release
it as soon as possible.
Anyway, for multiple process logging, a file is not the best way. Maiby an event log (windows)
or syslog (nix) or a network sink might work better.

florin

________________________________
From: Jordan JBO. Bouclet [mailto:jbouclet@scotler.fr]
Sent: Friday, October 23, 2009 12:55 PM
To: log4net-user@logging.apache.org
Subject: RE: multi process settings

Hi,

I have got a problem with the settings of log4net about multi access on a file.
My context : I'v got a dll wich log into a trace.log. That dll is used by 2 different programs.
When the first create the instance of log4net, the 2nd one can't write into the trace.log.
I can't find the right settings to do that. The best behavior would be to create a new file
with YYYYMMdd-HH_mm_ss when the instance can't write into the file.

For now, I did, following the config-exemple from the apache site :

        &lt;log4net&gt;
               &lt;root&gt;
                       &lt;level value="ALL" /&gt;
                       &lt;appender-ref ref="FileAppender" /&gt;
               &lt;/root&gt;
               &lt;appender name="FileAppender" type="log4net.Appender.RollingFileAppender"&gt;
                       &lt;file value="E:\\Log\\Trace.log" /&gt;
                       &lt;appendToFile value="True" /&gt;
                       &lt;rollingStyle value="Date" /&gt;
                       &lt;staticLogFileName value="false" /&gt;
                       &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock "
/&gt;

                       &lt;datePattern value="yyyyMMdd-HHmm" /&gt;
                       &lt;maxSizeRollBackups value="-1" /&gt;
                       &lt;layout type="log4net.Layout.PatternLayout"&gt;
                               &lt;conversionPattern value="%date [%-5level] : %message%newline"
/&gt;
                       &lt;/layout&gt;
               &lt;/appender&gt;

        &lt;/log4net&gt;


But I'm having an error with the 2nd instance wich is : System.TypeLoadException: Could not
load type [log4net.Appender.FileAppender+MinimalLock ]. Tried assembly [log4net, Version=1.2.10.0,
Culture=neutral, PublicKeyToken=1b44e1d426115821] and all loaded assemblies.

Is there a solution to that ?

Thanks.



</pre>
</div>
</content>
</entry>
<entry>
<title>Out of the office</title>
<author><name>harry.douglass@pnc.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3cOF4080B2FD.1A2F58F3-ON85257658.003A7CC9-85257658.003A7CC9@pnc.com%3e"/>
<id>urn:uuid:%3cOF4080B2FD-1A2F58F3-ON85257658-003A7CC9-85257658-003A7CC9@pnc-com%3e</id>
<updated>2009-10-23T10:38:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I will be out of the office starting  10/23/2009 and will not return until
10/26/2009.

I will respond to your message upon my return.  If you need immediate
assistance, please contact Jim Snyder at (215) 585-6514.  Thank you.


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 servicing e-mails.


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: multi process settings</title>
<author><name>&quot;Jordan JBO. Bouclet&quot; &lt;jbouclet@scotler.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3cEE7DD7F009A9FE42A3B59F8A614A8D5ABB348B@siege.genienum.com%3e"/>
<id>urn:uuid:%3cEE7DD7F009A9FE42A3B59F8A614A8D5ABB348B@siege-genienum-com%3e</id>
<updated>2009-10-23T09:55:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

 

I have got a problem with the settings of log4net about multi access on
a file.

My context : I'v got a dll wich log into a trace.log. That dll is used
by 2 different programs. When the first create the instance of log4net,
the 2nd one can't write into the trace.log.

I can't find the right settings to do that. The best behavior would be
to create a new file with YYYYMMdd-HH_mm_ss when the instance can't
write into the file.

 

For now, I did, following the config-exemple from the apache site : 

 

        &lt;log4net&gt;

               &lt;root&gt;

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

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

               &lt;/root&gt;

               &lt;appender name="FileAppender"
type="log4net.Appender.RollingFileAppender"&gt;

                       &lt;file value="E:\\Log\\Trace.log" /&gt;

                       &lt;appendToFile value="True" /&gt;

                       &lt;rollingStyle value="Date" /&gt;

                       &lt;staticLogFileName value="false" /&gt;

                       &lt;lockingModel
type="log4net.Appender.FileAppender+MinimalLock " /&gt;

                       &lt;datePattern value="yyyyMMdd-HHmm" /&gt;

                       &lt;maxSizeRollBackups value="-1" /&gt;

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

                               &lt;conversionPattern value="%date
[%-5level] : %message%newline" /&gt;

                       &lt;/layout&gt;

               &lt;/appender&gt;

               

        &lt;/log4net&gt;

 

But I'm having an error with the 2nd instance wich is :
System.TypeLoadException: Could not load type
[log4net.Appender.FileAppender+MinimalLock ]. Tried assembly [log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821] and
all loaded assemblies.

 

Is there a solution to that ? 

 

Thanks.

 



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Signing the log4net.dll with a digital signature</title>
<author><name>&quot;Walden H. Leverich&quot; &lt;WaldenL@TechSoftInc.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3c43A10173A6B4F54BACFACFB39EBD47554EED64@ex2.techsoftwareinc.com%3e"/>
<id>urn:uuid:%3c43A10173A6B4F54BACFACFB39EBD47554EED64@ex2-techsoftwareinc-com%3e</id>
<updated>2009-10-15T13:25:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt; You're probably mixing signing the dll for GAC (strong name), and
Authenticode as offered by Verisign and others which Michael asks for.

 

You're absolutely correct. I didn't think that one through. I was
thinking of the SN signing for the GAC, and not of the Authenticode
requirement. I concur, just build/sign your own version.

 

-Walden

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com &lt;mailto:WaldenL@TechSoftInc.com&gt; 
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Dag Christensen [mailto:Dag.Christensen@vismaretail.no] 
Sent: Wednesday, October 14, 2009 3:11 AM
To: Log4NET User
Subject: RE: Signing the log4net.dll with a digital signature

 

You're probably mixing signing the dll for GAC (strong name), and
Authenticode as offered by Verisign and others which Michael asks for.

 

Log4net is distributed as a strong name assembly signed by a key held by
Apache. If you recompile log4net from source and want it strong named,
you'll have to sign it with your own key. Keeping the original Apache
key private allows an end-user to verify the binary has been built from
original apache source (pgp is just an extra insurance).

 

Authenticode works on existing binaries (signtool.exe), and the process
is described here:
https://knowledge.verisign.com/support/code-signing-support/index?page=c
ontent&amp;id=AR190

 

Since the Apache license allows you to change and distribute your own
versions of log4net (with some conditions, see 4. Redistribution at
http://logging.apache.org/log4net/license.html), you should be free to
digitally sign the binaries too.

 

Regards,

 

Dag

 

 

Fra: Michael Hablich [mailto:m.hablich@tricentis.com] 
Sendt: 14. oktober 2009 08:54
Til: Log4NET User
Emne: AW: Signing the log4net.dll with a digital signature

 

Unfortunatly not. Maybe you mean the PGP signature but I need a digital
signature for Windows DLLs. For instance Verisign issues such
signatures. I doubt the Apache foundation has such signatures because
they cost money. 

 

If I interpret the Apache license correctly it is okay to sign the DLL
with my own signature but I am not sure.

 

Von: Walden H. Leverich [mailto:WaldenL@TechSoftInc.com] 
Gesendet: Dienstag, 13. Oktober 2009 18:22
An: Log4NET User
Betreff: RE: Signing the log4net.dll with a digital signature

 

But isn't there a signed version of l4n that you can download and use?
Why sign your own?

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Michael Hablich [mailto:m.hablich@tricentis.com] 
Sent: Monday, October 12, 2009 7:58 AM
To: Log4NET User
Subject: AW: Signing the log4net.dll with a digital signature

 

One prerequisite for Windows certification (for the software) is having
all deployed DLLs digitally signed wheter from the original developer or
the deployer.

 

Von: Karim Bourouba [mailto:karym6@hotmail.com] 
Gesendet: Montag, 12. Oktober 2009 13:51
An: log4net-user@logging.apache.org
Betreff: RE: Signing the log4net.dll with a digital signature

 

I would say yes, it is. But I am not sure as to why you would want to do
this?



  

________________________________

From: m.hablich@tricentis.com
To: log4net-user@logging.apache.org
Date: Mon, 12 Oct 2009 13:06:34 +0200
Subject: Signing the log4net.dll with a digital signature

Hello,

 

is it allowed to sign the log4net.dll with my own digital signature?

 

Thanks in advance,

Michael

 

 

________________________________

View your other email accounts from your Hotmail inbox. Add them now.
&lt;http://clk.atdmt.com/UKM/go/167688463/direct/01/&gt; 

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.f-secure.com/



</pre>
</div>
</content>
</entry>
<entry>
<title>AW: Signing the log4net.dll with a digital signature</title>
<author><name>Michael Hablich &lt;m.hablich@tricentis.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3cC5BED61957DEAB46AA2E570174A09B3C65FB93DC2D@QHEXMBOX1.hosting.inetserver.de%3e"/>
<id>urn:uuid:%3cC5BED61957DEAB46AA2E570174A09B3C65FB93DC2D@QHEXMBOX1-hosting-inetserver-de%3e</id>
<updated>2009-10-14T07:23:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks, that was exactly what I wanted to know.



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Signing the log4net.dll with a digital signature</title>
<author><name>&quot;Dag Christensen&quot; &lt;Dag.Christensen@vismaretail.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200910.mbox/%3cB49AC122E5F4CA469D9440E6026210F29A5346@vbdex.vbd.no%3e"/>
<id>urn:uuid:%3cB49AC122E5F4CA469D9440E6026210F29A5346@vbdex-vbd-no%3e</id>
<updated>2009-10-14T07:10:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You're probably mixing signing the dll for GAC (strong name), and
Authenticode as offered by Verisign and others which Michael asks for.

 

Log4net is distributed as a strong name assembly signed by a key held by
Apache. If you recompile log4net from source and want it strong named,
you'll have to sign it with your own key. Keeping the original Apache
key private allows an end-user to verify the binary has been built from
original apache source (pgp is just an extra insurance).

 

Authenticode works on existing binaries (signtool.exe), and the process
is described here:
https://knowledge.verisign.com/support/code-signing-support/index?page=c
ontent&amp;id=AR190

 

Since the Apache license allows you to change and distribute your own
versions of log4net (with some conditions, see 4. Redistribution at
http://logging.apache.org/log4net/license.html), you should be free to
digitally sign the binaries too.

 

Regards,

 

Dag

 

 

Fra: Michael Hablich [mailto:m.hablich@tricentis.com] 
Sendt: 14. oktober 2009 08:54
Til: Log4NET User
Emne: AW: Signing the log4net.dll with a digital signature

 

Unfortunatly not. Maybe you mean the PGP signature but I need a digital
signature for Windows DLLs. For instance Verisign issues such
signatures. I doubt the Apache foundation has such signatures because
they cost money. 

 

If I interpret the Apache license correctly it is okay to sign the DLL
with my own signature but I am not sure.

 

Von: Walden H. Leverich [mailto:WaldenL@TechSoftInc.com] 
Gesendet: Dienstag, 13. Oktober 2009 18:22
An: Log4NET User
Betreff: RE: Signing the log4net.dll with a digital signature

 

But isn't there a signed version of l4n that you can download and use?
Why sign your own?

 


-- 
Walden H Leverich III
Tech Software &amp; 

BEC - IRBManager
(516) 627-3800 x3051
WaldenL@TechSoftInc.com
http://www.TechSoftInc.com &lt;http://www.techsoftinc.com/&gt; 
http://www.IRBManager.com &lt;http://www.irbmanager.com/&gt; 


Quiquid latine dictum sit altum viditur.
(Whatever is said in Latin seems profound.)

 

From: Michael Hablich [mailto:m.hablich@tricentis.com] 
Sent: Monday, October 12, 2009 7:58 AM
To: Log4NET User
Subject: AW: Signing the log4net.dll with a digital signature

 

One prerequisite for Windows certification (for the software) is having
all deployed DLLs digitally signed wheter from the original developer or
the deployer.

 

Von: Karim Bourouba [mailto:karym6@hotmail.com] 
Gesendet: Montag, 12. Oktober 2009 13:51
An: log4net-user@logging.apache.org
Betreff: RE: Signing the log4net.dll with a digital signature

 

I would say yes, it is. But I am not sure as to why you would want to do
this?



  

________________________________

From: m.hablich@tricentis.com
To: log4net-user@logging.apache.org
Date: Mon, 12 Oct 2009 13:06:34 +0200
Subject: Signing the log4net.dll with a digital signature

Hello,

 

is it allowed to sign the log4net.dll with my own digital signature?

 

Thanks in advance,

Michael

 

 

________________________________

View your other email accounts from your Hotmail inbox. Add them now.
&lt;http://clk.atdmt.com/UKM/go/167688463/direct/01/&gt; 

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

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