Victor Munoz (JIRA | 4 Nov 16:36 2008
Picon

[jira] Created: (LOG4NET-183) Appender: RemoteSyslogAppender, semicolon persist if identity value is an empty string

Appender: RemoteSyslogAppender, semicolon persist if identity value is an empty string
--------------------------------------------------------------------------------------

                 Key: LOG4NET-183
                 URL: https://issues.apache.org/jira/browse/LOG4NET-183
             Project: Log4net
          Issue Type: Bug
          Components: Appenders
    Affects Versions: 1.2.10
         Environment: Windows XP, .Net 2.0
            Reporter: Victor Munoz
            Priority: Minor

Filename: RemolteSyslogAppender.cs
-------------------------------------------------------
// Identity
if (m_identity != null)
{
    m_identity.Format(writer, loggingEvent);
}
Else
{
    writer.Write(loggingEvent.Domain);
}
writer.Write(": ");  <------------------------------- ALWAYS include semicolon, even if identity is
an empty string.

--

-- 
This message is automatically generated by JIRA.
-
(Continue reading)

Curt Arnold | 4 Nov 18:37 2008
Picon

ApacheCon live video streaming available; keynotes and Apache 101 are free

Can't make ApacheCon this week in New Orleans?  You can still watch all
the keynotes, Apache 101 sessions, and system administration track in
live video streams:

   http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann

Keynotes and the Apache 101 lunchtime sessions are free; the full
sysadmin track, including httpd performance, security, and server stack
administration talks are available for a fee.

Keynotes include:
- David Recordon, Six Apart  (Wednesday 09:30)
   "Learning from Apache to create Open Specifications"

- Shahani Markus Weerawarana, Ph.D.  (Thursday 11:30)
   "Standing on the Shoulders of Giants"

- Sam Ramji, Microsoft  (Friday 11:30)
   "struct.new("future", :open, :microsoft)"

   Reminder: New Orleans is CST or UTC/GMT -6 hours.

Advance notice: ApacheCon EU 2009 returns to Amsterdam, 23-27 March.  We
had a great response to our CFP and look forward to announcing the
schedule in the next month.

Regards
--

-- 
Lars Eilebrecht  -  V.P., Conference Planning
lars <at> apache.org  -  http://www.us.apachecon.com
(Continue reading)

Roger Knapp (JIRA | 8 Nov 22:34 2008
Picon

[jira] Created: (LOG4NET-184) Configuration Changes + XSD

Configuration Changes + XSD
---------------------------

                 Key: LOG4NET-184
                 URL: https://issues.apache.org/jira/browse/LOG4NET-184
             Project: Log4net
          Issue Type: Wish
          Components: Core, Documentation
    Affects Versions: 1.2.10
         Environment: n/a
            Reporter: Roger Knapp
            Priority: Minor

I'm a first-time user of log4net.  At first impression the configuration is very overwhelming.  Though I
recognize the strength by it's flexibility, I think it's one of the weakest points of log4net.  Some simple
changes could allow a real XSD to be created and thus to verify configuration and provide helpful context
help when tring to create them.  I've worked to understand the current configuration and after reading the
documentation and reverse engineering the code, I finally have an understanding what to do.  It was a long
and painful process and I wanted to share that experience with you only so that you could improve the
experience for others.

Namely, I want to suggest that the following change be allowed in future version.  Rather than having the
'type=' attribute used on elements (appenders, filters, and layouts) that reflect a built-in
component, I would recommend ADDING an alternative way of defining them by using the appender (or
fitler/layout) name as the element name much like you already do with the 'param' and class properties. 
This allows for us to now create full validating XSD files.

On the effort of creating an XSD file, I have made progress beyond what was previously available.  You can
find it at the following location:
http://csharptest.net/downloads/schema/log4net.xsd
(Continue reading)

nir bon (JIRA | 9 Nov 10:50 2008
Picon

[jira] Created: (LOG4NET-185) Rolling files backups is not decreasing when updating MaxSizeRollBackups

Rolling files backups is not decreasing when updating MaxSizeRollBackups
------------------------------------------------------------------------

                 Key: LOG4NET-185
                 URL: https://issues.apache.org/jira/browse/LOG4NET-185
             Project: Log4net
          Issue Type: Bug
    Affects Versions: 1.2.10
         Environment: windows, all 
            Reporter: nir bon

When decreasing the MaxSizeRollBackups parameter at runtime.
the log4net is not deleting older files that has already written.

This means that if i change the MaxSizeRollBackups parameter repeadetly, i can reach to very large number
of old log files.

reconstruct scenario
^^^^^^^^^^^^^^^^^^^^^^
set number of backups to 10 files. wait till you have 10 files.
decrease number of backups to 2. 

result- 10 files will remain at disk. 8 files will never be deleted, 2 files will stay as retention.
expected - only 2 files will remain in disk.

--

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

(Continue reading)

Ron Grabowski (JIRA | 12 Nov 01:15 2008
Picon

[jira] Commented: (LOG4NET-180) SMTPAppender not sending all emails


    [
https://issues.apache.org/jira/browse/LOG4NET-180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646740#action_12646740
] 

Ron Grabowski commented on LOG4NET-180:
---------------------------------------

What happens when you add this to the appender:

 <bufferSize value="1" />

> SMTPAppender not sending all emails
> -----------------------------------
>
>                 Key: LOG4NET-180
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-180
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows XP with SP2, Visual Studio 2008 with SP1, C#, WCF
>            Reporter: Paul Speranza
>
> I have a WCF IIS service application. hardly any of my SMTP emails are getting sent out. TO be sure that it
isn't my SMTP server I created a console app that sends mail using System.Net.Mail and it works every time.
I only have log4net configured for SmtpAppender.
> Here is the config.
>   <log4net>
>     <appender name="SmtpAppender" type="log4net.Appender.SmtpAppender" >
(Continue reading)

Ron Grabowski (JIRA | 12 Nov 01:25 2008
Picon

[jira] Commented: (LOG4NET-179) Log file does not get created by release version of App.exe


    [
https://issues.apache.org/jira/browse/LOG4NET-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646748#action_12646748
] 

Ron Grabowski commented on LOG4NET-179:
---------------------------------------

The code works the same in both Debug and Release modes when I changed the file name to something more
meaningful. You can't lock nul:

 log4net:ERROR [RollingFileAppender] OpenFile(\\.\nul,False) call failed.
 log4net.Appender.FileAppender+LockingStream+LockStateException: The file is not currently locked

> Log file does not get created by release version of App.exe
> -----------------------------------------------------------
>
>                 Key: LOG4NET-179
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-179
>             Project: Log4net
>          Issue Type: Test
>    Affects Versions: 1.2.10
>         Environment: Visual Studio 2005, language C#, OS Windows XP Professional
>            Reporter: Shetal Shah
>
> I have a windows application that uses log4net. 
> My app.config section has
> <log4net>
>     <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
>       <file value="nul" />
(Continue reading)

Ron Grabowski (JIRA | 12 Nov 01:27 2008
Picon

[jira] Assigned: (LOG4NET-181) Have PatternString recognize %n just as PatternLayout recognizes it


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

Ron Grabowski reassigned LOG4NET-181:
-------------------------------------

    Assignee: Ron Grabowski

> Have PatternString recognize %n just as PatternLayout recognizes it
> -------------------------------------------------------------------
>
>                 Key: LOG4NET-181
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-181
>             Project: Log4net
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 1.2.10
>            Reporter: Chris Jerdonek
>            Assignee: Ron Grabowski
>            Priority: Minor
>
> The log4net.Layout.PatternLayout class recognizes %n and %newline for newlines, but
log4net.Util.PatternString recognizes only %newline.  This may be a source of confusion for some people
(and was for me temporarily).
> I don't know if there are other cases like this.  If so, it might make sense to have both classes recognize the
same conversion patterns -- for those patterns that would make sense in both contexts.  Thanks.

--

-- 
This message is automatically generated by JIRA.
(Continue reading)

Ron Grabowski (JIRA | 12 Nov 01:27 2008
Picon

[jira] Commented: (LOG4NET-178) Log4Net stops logging after appdomain recycle of aps.net2.0 application


    [
https://issues.apache.org/jira/browse/LOG4NET-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646749#action_12646749
] 

Ron Grabowski commented on LOG4NET-178:
---------------------------------------

What appenders are you using? Maybe you have an exclusive lock on something that is still being kept after
the restart. Have you tried using the AdoNetAppender and/or appending the processid to your filename so
every restart gets its own file?

> Log4Net stops logging after appdomain recycle of aps.net2.0 application
> -----------------------------------------------------------------------
>
>                 Key: LOG4NET-178
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-178
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.10
>         Environment: Windows server 2003
>            Reporter: Richard Nijkamp
>
> Dear sir/madam,
>  We are using Log4Net 1.2.10. We encounter the problem that Log4net doesn't continue logging after an
event that triggers an appdomain recycle/restart.
>  In the global.asax we start the logging with:
>  private static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
> Logging works flawless when the application is started for the first time. After sometime it might occur
(Continue reading)

chandler1234 | 13 Nov 22:27 2008
Picon

Re: log4net support for .NET framework 3.5


current version does seem to work with Microsoft .NET 3.5, this (
http://www.dottostring.com/2008/11/5-how-to-use-log4net-logging-aspnet-application/
http://www.dottostring.com/2008/11/5-how-to-use-log4net-logging-aspnet-application/
) really helped me to get going quickly without wasting any time. hope it
helps you :)

dipankaronline wrote:
> 
> I just want to know that which version of log4net support Microsoft .NET
> framework 3.5? Is there any such version exists at all till now?
> 

--

-- 
View this message in context: http://www.nabble.com/log4net-support-for-.NET-framework-3.5-tp20164275p20489908.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.

Henry Padilla | 14 Nov 19:04 2008
Picon

configSections getting compiler message.

I'm trying to use this in VS2005 .NET v2.0. I need to set the config up in the App.config but I'm getting messages:

"Could not find schema information for the element 'log4net'."
"Could not find schema information for the element 'appender'."

...and so forth. I'm using the configSections example from the site and I can't find anything wrong:

    <configSections>
        <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    </configSections>
    <log4net>
        <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
            <file value="log.txt" />
            <appendToFile value="true" />
            <rollingStyle value="Size" />
            <maxSizeRollBackups value="10" />
            <maximumFileSize value="100KB" />
            <staticLogFileName value="true" />
            <layout type="log4net.Layout.PatternLayout">
                <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
            </layout>
        </appender>

        <root>
            <level value="INFO" />
            <appender-ref ref="ConsoleAppender" />
        </root>
    </log4net>

What am I doing wrong? Am I doing anything wrong or do I simply ignore the messages?

Thanks for the help.
Tom P.
Windows Live Hotmail now works up to 70% faster. Sign up today.

Gmane